SetKeyBroken(AnimationCurve, int, bool)
Change the specified keyframe broken tangent flag.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void SetKeyBroken(AnimationCurve curve, int index, bool broken)
Parameters
Remarks
The keyframe broken flag will be used by the Curve Editor to generate tangents automatically. Changing the broken flag here will also recalculate Keyframe.inTangent and Keyframe.outTangent.
Additional Resources: AnimationUtility.SetKeyLeftTangentMode, AnimationUtility.SetKeyRightTangentMode.