Documentation

Unity Engine


Unity Engine


SetKeyRightTangentMode(AnimationCurve, int, TangentMode)

Change the specified keyframe tangent mode.
Read time 1 minuteLast updated a month ago

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.