/// <summary> /// Gets the maximum time of this curve. /// </summary> /// <returns>Returns the found maximum time, or default keyframe's if there's no keyframe on the given curve.</returns> public static float GetMaxTime(this AnimationCurve _Curve) { return(_Curve.GetLastKeyframe().time); }