Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


nameHash

The hashed name of the State.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
Warning
Deprecated. AnimatorStateInfo.nameHash has been deprecated. Use AnimatorStateInfo.fullPathHash instead.
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
.