Method GetFirstLayerIndex
GetFirstLayerIndex(LayerMask)
Gets the index of the first enabled layer in this layerMask.
Declaration
public static int GetFirstLayerIndex(this LayerMask layerMask)
Parameters
| Type | Name | Description |
|---|---|---|
| LayerMask | layerMask | The layer mask. |
Returns
| Type | Description |
|---|---|
| int | The index of the first enabled layer. |