Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 254 Bytes

LayerMask

Contains

Tests LayerMask for the supplied Layer name or int.

LayerMask layerMask = ~0;
Debug.Log(layerMask.Contains("Water")); // true
LayerMask layerMask = ~0;
Debug.Log(layerMask.Contains(4)); // true
You can’t perform that action at this time.