UnityEngine.Experimental.Director.AnimatorControllerPlayable.GetLayerIndex C# (CSharp) Method

GetLayerIndex() private method

private GetLayerIndex ( string layerName ) : int
layerName string
return int
        public extern int GetLayerIndex(string layerName);
        [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]

Usage Example

 static public int GetLayerIndex(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.GetLayerIndex(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }