UnityEngine.Experimental.Director.AnimatorControllerPlayable.SetLayerWeight C# (CSharp) Метод

SetLayerWeight() приватный Метод

private SetLayerWeight ( int layerIndex, float weight ) : void
layerIndex int
weight float
Результат void
        public extern void SetLayerWeight(int layerIndex, float weight);
        public void SetTrigger(int id)

Usage Example

 static public int SetLayerWeight(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         self.SetLayerWeight(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }