# GetDiscreteCurve(AnimationClip, EditorCurveBinding)

> Retrieves the discrete curve that the binding points to.

## Definition

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

```csharp
public static DiscreteKeyframe[] GetDiscreteCurve(AnimationClip clip, EditorCurveBinding binding)
```

### Parameters

**** (\[AnimationClip]\(/engine/7000.0/script-reference/unityengine/animationclip)): Animation clip to query.**** (\[EditorCurveBinding]\(/engine/7000.0/script-reference/unityeditor/editorcurvebinding)): The binding that defines the path and the properties of the value.

### Returns

| Type                                                                                    | Description                    |
| --------------------------------------------------------------------------------------- | ------------------------------ |
| [DiscreteKeyframe\[\]](/engine/7000.0/script-reference/unityeditor/discretekeyframe.md) | Returns an array of keyframes. |

### Remarks

Unlike float curves, discrete curves do not have additional metadata. For this reason, an array of keyframes is returned instead of a curve object.

See also: [AnimationUtility.GetEditorCurve](/engine/7000.0/script-reference/unityeditor/animationutility/geteditorcurve.md).
