文档

Unity Engine

Unity Engine

nameHash

The hashed name of the State.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
警告
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
.