Version: 2022.3
LanguageEnglish
  • C#
Method group is Obsolete

AnimatorStateInfo.nameHash

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete AnimatorStateInfo.nameHash has been deprecated. Use AnimatorStateInfo.fullPathHash instead. public int nameHash;

Description

The hashed name of the State.

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.