LayerMask
struct in UnityEngine · UnityEngine.CoreModule
In Tassix
A bit mask of the 32 layers. Layer names are Unity's built-in ones, or a Unity project's (ProjectSettings/TagManager.asset) once it's opened.
Properties 1
int value { get; set; }Methods 3
static int GetMask(params string[] layerNames)Mask of the named layers; unknown names are ignored.
static string LayerToName(int layer)static int NameToLayer(string layerName)The layer index, or -1 if no layer has that name.