|
| static int | FindLayerListIndex (this int layer, LayerMask[] layerMasks) |
| | Look through the layerMaskList and find the index in that list for which the supplied layer is part of More...
|
| |
| static bool | IsInLayerMask (this int layer, int layerMask) |
| | Checks whether a layer is in a layer mask More...
|
| |
| static int | Combine (this LayerMask[] layerMaskList) |
| | Combines provided layers into a single layer mask. More...
|
| |
| static LayerMask | ToMask (int layer) |
| |
Definition at line 8 of file LayerExtensions.cs.
§ Combine()
| static int HoloToolkit.Unity.LayerExtensions.Combine |
( |
this LayerMask [] |
layerMaskList | ) |
|
|
static |
Combines provided layers into a single layer mask.
- Returns
- The combined layer mask
Definition at line 84 of file LayerExtensions.cs.
§ FindLayerListIndex()
| static int HoloToolkit.Unity.LayerExtensions.FindLayerListIndex |
( |
this int |
layer, |
|
|
LayerMask [] |
layerMasks |
|
) |
| |
|
static |
Look through the layerMaskList and find the index in that list for which the supplied layer is part of
- Parameters
-
| layer | Layer to search for |
| layerMasks | List of LayerMasks to search |
- Returns
- LayerMaskList index, or -1 for not found
Definition at line 56 of file LayerExtensions.cs.
§ IsInLayerMask()
| static bool HoloToolkit.Unity.LayerExtensions.IsInLayerMask |
( |
this int |
layer, |
|
|
int |
layerMask |
|
) |
| |
|
static |
Checks whether a layer is in a layer mask
- Returns
- True if the layer mask contains the layer
Definition at line 75 of file LayerExtensions.cs.
§ ToMask()
| static LayerMask HoloToolkit.Unity.LayerExtensions.ToMask |
( |
int |
layer | ) |
|
|
static |
§ Activation
| int HoloToolkit.Unity.LayerExtensions.Activation |
|
staticget |
§ Default
| int HoloToolkit.Unity.LayerExtensions.Default |
|
staticget |
§ Interaction
| int HoloToolkit.Unity.LayerExtensions.Interaction |
|
staticget |
§ Surface
| int HoloToolkit.Unity.LayerExtensions.Surface |
|
staticget |
The documentation for this class was generated from the following file: