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); } }
internal static void UpdateTangentsFromMode(AnimationCurve curve) { AnimationUtility.VerifyCurve(curve); AnimationUtility.UpdateTangentsFromModeInternal(curve); }