# GetOverrideMotion(AnimatorState)

> Gets the override motion for the state on the given layer.

## Definition

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

```csharp
public Motion GetOverrideMotion(AnimatorState state)
```

### Parameters

**** (\[AnimatorState]\(/engine/6000.6/script-reference/unityeditor/animations/animatorstate)): The state which we want to get the motion.

### Returns

| Type                                                            | Description |
| --------------------------------------------------------------- | ----------- |
| [Motion](/engine/6000.6/script-reference/unityengine/motion.md) |             |
