UnityEngine.Gradient.SetKeys C# (CSharp) Method

SetKeys() private method

private SetKeys ( GradientColorKey colorKeys, GradientAlphaKey alphaKeys ) : void
colorKeys GradientColorKey
alphaKeys GradientAlphaKey
return void
        public extern void SetKeys(GradientColorKey[] colorKeys, GradientAlphaKey[] alphaKeys);
    }

Usage Example

コード例 #1
0
 static public int SetKeys(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Gradient           self = (UnityEngine.Gradient)checkSelf(l);
         UnityEngine.GradientColorKey[] a1;
         checkArray(l, 2, out a1);
         UnityEngine.GradientAlphaKey[] a2;
         checkArray(l, 3, out a2);
         self.SetKeys(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
All Usage Examples Of UnityEngine.Gradient::SetKeys