# ProcessRootMotion(AnimationStream)

> Defines what to do when processing the root motion.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.7/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
void ProcessRootMotion(AnimationStream stream)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.7/script-reference/unityengine/animations/animationstream)): The animation stream to work on.

### Remarks

This method is called before [IAnimationJob.ProcessAnimation](/engine/6000.7/script-reference/unityengine/animations/ianimationjob/processanimation.md).
