# GetEditorCurve

> Retrieves the float curve that the binding points to.

## Definition

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

## GetEditorCurve(AnimationClip, EditorCurveBinding)

Retrieves the float curve that the binding points to.

```csharp
public static AnimationCurve GetEditorCurve(AnimationClip clip, EditorCurveBinding binding)
```

### Parameters

**** (\[AnimationClip]\(/engine/6000.5/script-reference/unityengine/animationclip)): **** (\[EditorCurveBinding]\(/engine/6000.5/script-reference/unityeditor/editorcurvebinding)):&#x20;

### Returns

| Type                                                                            | Description |
| ------------------------------------------------------------------------------- | ----------- |
| [AnimationCurve](/engine/6000.5/script-reference/unityengine/animationcurve.md) |             |

### Remarks

Unity internally combines position curves, scale curves, and rotation curves. When curves are combined, keyframes are set at the union of all keyframes points. In the Editor AnimationClip, you can specify special editor curves that are not combined and allows the user to edit curves in a more intuitive way.

See also: [AnimationUtility.GetObjectReferenceCurve](/engine/6000.5/script-reference/unityeditor/animationutility/getobjectreferencecurve.md).

## GetEditorCurve(AnimationClip, string, Type, string)

Retrieves the float curve that the binding points to.

> **Warning:**
>
> **Deprecated.** This overload is deprecated. Use the one with EditorCurveBinding instead.

```csharp
public static AnimationCurve GetEditorCurve(AnimationClip clip, string relativePath, Type type, string propertyName)
```

### Parameters

**** (\[AnimationClip]\(/engine/6000.5/script-reference/unityengine/animationclip)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                                            | Description |
| ------------------------------------------------------------------------------- | ----------- |
| [AnimationCurve](/engine/6000.5/script-reference/unityengine/animationcurve.md) |             |

### Remarks

Unity internally combines position curves, scale curves, and rotation curves. When curves are combined, keyframes are set at the union of all keyframes points. In the Editor AnimationClip, you can specify special editor curves that are not combined and allows the user to edit curves in a more intuitive way.

See also: [AnimationUtility.GetObjectReferenceCurve](/engine/6000.5/script-reference/unityeditor/animationutility/getobjectreferencecurve.md).
