Auf Englisch lesen Bearbeiten

Freigeben über


LayerExtensions Class

Definition

Extension methods for Unity's LayerMask struct

C++
public ref class LayerExtensions abstract sealed
Inheritance
LayerExtensions

Fields

InvalidLayerId

The Invalid Layer Id.

Methods

Combine(LayerMask[])

Combines provided layers into a single layer mask.

FindLayerListIndex(Int32, LayerMask[])

Look through the layerMaskList and find the index in that list for which the supplied layer is part of

GetLayerId(Int32, String)

Gets a valid layer id using the layer name.

IsInLayerMask(Int32, Int32)

Checks whether a layer is in a layer mask

ToMask(Int32)

Transform layer id to LayerMask

Applies to

Produkt Versionen
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0