Exemplo n.º 1
0
 private static void VerifyCurveAndKeyframeIndex(AnimationCurve curve, int index)
 {
     AnimationUtility.VerifyCurve(curve);
     if (index < 0 || index >= curve.length)
     {
         string message = string.Format("index {0} must be in the range of 0 to {1}.", index, curve.length - 1);
         throw new ArgumentOutOfRangeException("index", message);
     }
 }
Exemplo n.º 2
0
 internal static void UpdateTangentsFromMode(AnimationCurve curve)
 {
     AnimationUtility.VerifyCurve(curve);
     AnimationUtility.UpdateTangentsFromModeInternal(curve);
 }