Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

The curve to modify.

index

Keyframe index.

broken

Broken flag.

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.