#UnityTips Did you ever tried to set Unitys LayerMask to ‚Everything‘ in code?
Use the bitwise NOT operator (it is ~ in C#).
Like this: LayerMask mask = ~0;This corresponds to everything 😎
Another good use of the NOT operator in our example picture 👇#gamedev #indiedev pic.twitter.com/YOegyXTspH
— Binary Impact (@BinaryImpactG) February 14, 2023