# GetAnimationCurve

> Gets the value of a named Animation Curve property.

## Definition

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

## GetAnimationCurve(int)

Gets the value of a named Animation Curve property.

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property. This is the same ID that [Shader.PropertyToID](/engine/6000.6/script-reference/unityengine/shader/propertytoid.md) returns.

### Returns

| Type                                                                            | Description                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AnimationCurve](/engine/6000.6/script-reference/unityengine/animationcurve.md) | The value for the Animation Curve you specify. Returns an empty Animation Curve if [VisualEffect.HasAnimationCurve](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasanimationcurve.md) returns `false`. |

## GetAnimationCurve(string)

Gets the value of a named Animation Curve property.

```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.6/script-reference/unityengine/animationcurve.md) | The value for the Animation Curve you specify. Returns an empty Animation Curve if [VisualEffect.HasAnimationCurve](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasanimationcurve.md) returns `false`. |
