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