기술 자료

Unity Engine

Unity Engine

SetKeyBroken(AnimationCurve, int, bool)

Change the specified keyframe broken tangent flag.
읽는 시간 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.