LayerExtensions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for Unity's LayerMask struct
C++
public ref class LayerExtensions abstract sealed
public static class LayerExtensions
type LayerExtensions = class
Public Module LayerExtensions
- Inheritance
-
LayerExtensions
Invalid |
The Invalid Layer Id. |
Combine(Layer |
Combines provided layers into a single layer mask. |
Find |
Look through the layerMaskList and find the index in that list for which the supplied layer is part of |
Get |
Gets a valid layer id using the layer name. |
Is |
Checks whether a layer is in a layer mask |
To |
Transform layer id to LayerMask |
Produkt | Versionen |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |