# nameHash

> The hashed name of the State.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

> **Warning:**
>
> **Deprecated.** AnimatorStateInfo.nameHash has been deprecated. Use AnimatorStateInfo.fullPathHash instead.

```csharp
public int nameHash { get; }
```

### Remarks

The hash includes the name of the parent layer. For example, if you have a `Run` state in the `Base Layer`, the string used to generate the hash is `Base Layer.Run`.
