GetLayerIndex

GetLayerIndex(Animator, string)

public static int GetLayerIndex(Animator animator, string layerName) ;

Description

Get the index from the layer name.

Parameters

Parameter Name Description
animator Animator
layerName Layer Name

Returns

Index found. If not found, returns -1.