Layer Mask
Layer Mask Get Mask
Given a set of layer names, returns the equivalent layer mask for all of them. For more information, refer to LayerMask.GetMask in the Unity documentation.
Inputs:
Layer Name List
List <string>
List of layer names.
Outputs:
Output
Integer
A layer mask for the given layers.
Layer to Name
Given a layer number, outputs the name of the layer. For more information, refer to LayerMask.LayerToName in the Unity documentation.
Inputs:
Layer
Integer
A layer number
Outputs:
Output
String
The name of the layer.
Name to Layer
Given a layer name, returns the layer index. For more information, refer to LayerMask.NameToLayer in the Unity documentation.
Inputs:
Layer Name
String
The name of a layer.
Outputs:
Output
Integer
The layer number.
Layer Mask Select Layer Mask
Get a layer index for a chosen layer mask.
Parameters:
Mask
List
You can select one of the following pre-set masks: Nothing, Everything, Default, TransparentIFX, Ignore Raycast, Water, or UI.
Outputs:
Output
Integer
An integer that references the chosen mask.
Last updated