# GetAnimationCurve

> Returns a an animation curve that corresponds to the bound named expression. If this entry is not available, or the type doesn't match, an exception is thrown.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.0/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## GetAnimationCurve(int)

Returns a an animation curve that corresponds to the bound named expression. If this entry is not available, or the type doesn't match, an exception is thrown.

```csharp
public AnimationCurve GetAnimationCurve(int nameID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The name ID of the property retrieved by [Shader.PropertyToID](/engine/6000.0/script-reference/unityengine/shader/propertytoid.md).

### Returns

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

## GetAnimationCurve(string)

Returns a an animation curve that corresponds to the bound named expression. If this entry is not available, or the type doesn't match, an exception is thrown.

```csharp
public AnimationCurve GetAnimationCurve(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.

### Returns

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