Version: Unity 6.1 Alpha (6000.1)
Language : English
Add a layer to a layerMask
Tags

Remove a layer from a layerMask

To remove a layer from a layermask, use the logical AND operator on the original layermask and the bitwise complement of the layer to remove it.

originalLayerMask &= ~(1 << layerToRemove);

Additional resources

Add a layer to a layerMask
Tags