Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetKeyRightTangentMode(AnimationCurve, int, TangentMode)

Change the specified keyframe tangent mode.
Read time 1 minuteLast updated 10 days ago

Definition

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