# SetDiscreteCurves(AnimationClip, EditorCurveBinding[], DiscreteKeyframe[][])

> Adds, modifies, or removes discrete curves in an animation clip.

## Definition

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

```csharp
public static void SetDiscreteCurves(AnimationClip clip, EditorCurveBinding[] bindings, DiscreteKeyframe[][] keyframes)
```

### Parameters

**** (\[AnimationClip]\(/engine/7000.0/script-reference/unityengine/animationclip)): The animation clip to modify.**** (\[EditorCurveBinding\[]]\(/engine/7000.0/script-reference/unityeditor/editorcurvebinding)): The bindings that define the paths and the properties of each curve.**** (\[DiscreteKeyframe\[]\[]]\(/engine/7000.0/script-reference/unityeditor/discretekeyframe)): Array of integer keyframe arrays, one per binding.

### Remarks

This method is equivalent to calling [AnimationUtility.SetDiscreteCurve](/engine/7000.0/script-reference/unityeditor/animationutility/setdiscretecurve.md) for each individual curve. This method also applies relevant post-processing operations only once. This method modifies discrete curves. For float curves, see [AnimationUtility.SetEditorCurves](/engine/7000.0/script-reference/unityeditor/animationutility/seteditorcurves.md). For object reference curves, see: [AnimationUtility.SetObjectReferenceCurves](/engine/7000.0/script-reference/unityeditor/animationutility/setobjectreferencecurves.md).
