Enum TangentMode
How a keyframe's tangents are derived.
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public enum TangentMode
Remarks
Keyframe stores tangent values but not the intent behind
them, and Unity's own AnimationUtility.TangentMode lives in UnityEditor, so it
cannot be referenced from a runtime component. The editor therefore keeps its own mode per
key, alongside the curve, and re-derives the tangent values from it whenever the geometry
the mode depends on moves.
Fields
| Name | Description |
|---|---|
| Auto | Smooth across the neighbours, with no overshoot protection. |
| Broken | The two tangents are authored independently, putting a corner at the key. |
| ClampedAuto | Smooth across the neighbours, flattened at a local minimum or maximum so the interpolation cannot overshoot past the key. |
| Flat | Both tangents are zero: the curve arrives and leaves horizontally. |
| Free | Both tangents are authored by hand and stay equal, so the curve remains smooth through the key. |
| Linear | Each tangent points straight at the neighbour on that side. |