# GetKeyBroken(AnimationCurve, int)

> Retrieves the broken tangent flag for a specfic keyframe.

## Definition

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

```csharp
public static bool GetKeyBroken(AnimationCurve curve, int index)
```

### Parameters

**** (\[AnimationCurve]\(/engine/6000.6/script-reference/unityengine/animationcurve)): Curve to query.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Keyframe index.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Broken flag at specified index. |

### Remarks

The Curve Editor uses the keyframe broken flag to automatically generate tangents.

Additional Resources: [AnimationUtility.GetKeyLeftTangentMode](/engine/6000.6/script-reference/unityeditor/animationutility/getkeylefttangentmode.md), [AnimationUtility.GetKeyRightTangentMode](/engine/6000.6/script-reference/unityeditor/animationutility/getkeyrighttangentmode.md).
