# AnimationUtility.TangentMode

> The TangentMode option for each Keyframe.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public enum AnimationUtility.TangentMode
```

## Remarks

The Curve Editor uses the TangentMode to calculate [Keyframe.inTangent](/engine/6000.5/script-reference/unityengine/keyframe/intangent.md) and [Keyframe.outTangent](/engine/6000.5/script-reference/unityengine/keyframe/outtangent.md).

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

## Fields

| Value                                                                                                  | Description                                                                       |
| ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
| [Auto](/engine/6000.5/script-reference/unityeditor/animationutility/tangentmode/auto.md)               | The tangents are automatically set to make the curve go smoothly through the key. |
| [ClampedAuto](/engine/6000.5/script-reference/unityeditor/animationutility/tangentmode/clampedauto.md) | The tangents are automatically set to make the curve go smoothly through the key. |
| [Constant](/engine/6000.5/script-reference/unityeditor/animationutility/tangentmode/constant.md)       | The curve retains a constant value between two keys.                              |
| [Free](/engine/6000.5/script-reference/unityeditor/animationutility/tangentmode/free.md)               | The tangent can be freely set by dragging the tangent handle.                     |
| [Linear](/engine/6000.5/script-reference/unityeditor/animationutility/tangentmode/linear.md)           | The tangent points towards the neighboring key.                                   |
