Edit

Share via


LayerExtensions.FindLayerListIndex(Int32, LayerMask[]) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static int FindLayerListIndex(int layer, cli::array <UnityEngine::LayerMask> ^ layerMasks);
public static int FindLayerListIndex (this int layer, UnityEngine.LayerMask[] layerMasks);
static member FindLayerListIndex : int * UnityEngine.LayerMask[] -> int
<Extension()>
Public Function FindLayerListIndex (layer As Integer, layerMasks As LayerMask()) As Integer

Parameters

layer
Int32

Layer to search for

layerMasks
UnityEngine.LayerMask[]

List of LayerMasks to search

Returns

LayerMaskList index, or -1 for not found

Applies to