Operator implicit operator
implicit operator int(InteractionLayerMask)
Implicitly converts an InteractionLayerMask to an integer.
Declaration
public static implicit operator int(InteractionLayerMask mask)
Parameters
| Type | Name | Description |
|---|---|---|
| InteractionLayerMask | mask | The mask to be converted. |
Returns
| Type | Description |
|---|---|
| int | Returns the integer value of the Interaction Layer Mask. |
implicit operator InteractionLayerMask(int)
Implicitly converts an integer to an InteractionLayerMask.
Declaration
public static implicit operator InteractionLayerMask(int intVal)
Parameters
| Type | Name | Description |
|---|---|---|
| int | intVal | The mask value. |
Returns
| Type | Description |
|---|---|
| InteractionLayerMask | Returns the Interaction Layer Mask for the integer value. |