LayerExtensions.FindLayerListIndex(Int32, LayerMask[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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