LayerExtensions Class
Definition
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
public ref class LayerExtensions abstract sealed
public static class LayerExtensions
type LayerExtensions = class
Public Module LayerExtensions
- Inheritance
-
LayerExtensions
Fields
InvalidLayerId |
The Invalid Layer Id. |
Methods
Combine(LayerMask[]) |
Combines provided layers into a single layer mask. |
FindLayerListIndex(Int32, LayerMask[]) |
Look through the layerMaskList and find the index in that list for which the supplied layer is part of |
GetLayerId(Int32, String) |
Gets a valid layer id using the layer name. |
IsInLayerMask(Int32, Int32) |
Checks whether a layer is in a layer mask |
ToMask(Int32) |
Transform layer id to LayerMask |