# SetKeyLeftTangentMode(AnimationCurve, int, TangentMode)

> Change the specified keyframe tangent mode.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void SetKeyLeftTangentMode(AnimationCurve curve, int index, AnimationUtility.TangentMode tangentMode)
```

### Parameters

**** (\[AnimationCurve]\(/engine/6000.0/script-reference/unityengine/animationcurve)): The curve to modify.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Keyframe index.**** (\[TangentMode]\(/engine/6000.0/script-reference/unityeditor/animationutility/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](/engine/6000.0/script-reference/unityengine/keyframe/intangent.md) and [Keyframe.outTangent](/engine/6000.0/script-reference/unityengine/keyframe/outtangent.md).

Additional Resources: [AnimationUtility.SetKeyRightTangentMode](/engine/6000.0/script-reference/unityeditor/animationutility/setkeyrighttangentmode.md), [AnimationUtility.SetKeyBroken](/engine/6000.0/script-reference/unityeditor/animationutility/setkeybroken.md).
