# SetAnimationCurve

> Sets the value of a named Animation Curve property.

## Definition

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

## SetAnimationCurve(int, AnimationCurve)

Sets the value of a named Animation Curve property.

```csharp
public void SetAnimationCurve(int nameID, AnimationCurve c)
```

### 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.5/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[AnimationCurve]\(/engine/6000.5/script-reference/unityengine/animationcurve)): The new Animation Curve.

### Remarks

Automatically changes overridden state for this property to true.

## SetAnimationCurve(string, AnimationCurve)

Sets the value of a named Animation Curve property.

```csharp
public void SetAnimationCurve(string name, AnimationCurve c)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[AnimationCurve]\(/engine/6000.5/script-reference/unityengine/animationcurve)): The new Animation Curve.

### Remarks

Automatically changes overridden state for this property to true.
