---
title: HasRootMotion
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/clipsampler/hasrootmotion
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/clipsampler/hasrootmotion.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:09:06.114Z
locale: en-us
---

# HasRootMotion

> Whether the clip has root motion curves for the rig of the sampler.

## Definition

* **Type:** Property
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public bool HasRootMotion { get; }
```

### Remarks

[ClipSampler.SampleRootMotion](/engine/7000.0/script-reference/unity/animations/clipsampler/samplerootmotion.md) returns identity transforms if this value is `false`.

The value is `true` when the clip has root motion curves (`MotionT` and `MotionQ`, or `RootT` and `RootQ`), or translation or rotation curves for the root motion bone of the rig or one of its parent bones. By default, the root motion bone is the root bone of the rig. To choose another bone, set [RigBuilder.RootMotionBoneId](/engine/7000.0/script-reference/unity/animations/rigbuilder/rootmotionboneid.md) when you build the rig.
