ドキュメント

Unity Engine

Unity Engine

SetKeyBroken(AnimationCurve, int, bool)

Change the specified keyframe broken tangent flag.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.