기술 자료

Unity Engine

Unity Engine

SetKeyRightTangentMode(AnimationCurve, int, TangentMode)

Change the specified keyframe tangent mode.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetKeyRightTangentMode(AnimationCurve curve, int index, AnimationUtility.TangentMode tangentMode)

Parameters

The curve to modify.

index

Keyframe index.

tangentMode

Tangent mode.

Remarks

The keyframe tangent mode will be used by the Curve Editor to generate tangents automatically. Changing the tangent mode here will also recalculate Keyframe.inTangent and Keyframe.outTangent.