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:

Name
Type
Description

Layer Name List

List <string>

List of layer names.

Outputs:

Name
Type
Description

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:

Name
Type
Description

Layer

Integer

A layer number

Outputs:

Name
Type
Description

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:

Name
Type
Description

Layer Name

String

The name of a layer.

Outputs:

Name
Type
Description

Output

Integer

The layer number.

Layer Mask Select Layer Mask

Get a layer index for a chosen layer mask.

Parameters:

Name
Type
Description

Mask

List

You can select one of the following pre-set masks: Nothing, Everything, Default, TransparentIFX, Ignore Raycast, Water, or UI.

Outputs:

Name
Type
Description

Output

Integer

An integer that references the chosen mask.

Last updated