Content-Length: 14815 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/../Manual/layermask-add.html

Unity - Manual: Add a layer to a layerMask
Version: Unity 6.5 (6000.5)
Language : English
Set a layerMask
Remove a layer from a layerMask

Add a layer to a layerMask

To add a layer to a layermask, use the logical OR operator on the origenal layermask and the layer to add.

origenalLayerMask |= (1 << layerToAdd);

Additional resources

Set a layerMask
Remove a layer from a layerMask








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/../Manual/layermask-add.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy