Method Contains
Contains(LayerMask, int)
Checks whether a layer is in a LayerMask.
Declaration
public static bool Contains(this LayerMask mask, int layer)
Parameters
| Type | Name | Description |
|---|---|---|
| LayerMask | mask | The layer mask. |
| int | layer | The layer index to check for. |
Returns
| Type | Description |
|---|---|
| bool | True if the specified layer is in this mask. |