# SetGenerateMotionCurves(AnimationClip, bool)

> Sets whether the animation clip generates root motion curves.

## Definition

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

> **Warning:**
>
> **Deprecated.** This is not used anymore.  Root motion curves are automatically generated if applyRootMotion is enabled on Animator component.

```csharp
public static void SetGenerateMotionCurves(AnimationClip clip, bool value)
```

### Parameters

**** (\[AnimationClip]\(/engine/6000.0/script-reference/unityengine/animationclip)): AnimationClip to change.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true to enable generation of root motion curves.
