Skip to main content

AnimatorStateInfo

Information about the current or next state.

Members

Properties

NameDescription
AnimatorStateInfo.fullPathHashThe full path hash for this state.
AnimatorStateInfo.lengthCurrent duration of the state.
AnimatorStateInfo.loopIs the state looping.
AnimatorStateInfo.normalizedTimeNormalized time of the State.
AnimatorStateInfo.shortNameHashThe hash is generated using Animator.StringToHash. The hash does not include the name of the parent layer.
AnimatorStateInfo.speedThe playback speed of the animation. 1 is the normal playback speed.
AnimatorStateInfo.speedMultiplierThe speed multiplier for this state.
AnimatorStateInfo.tagHashThe Tag of the State.

Methods

NameDescription
AnimatorStateInfo.IsName(name)Does name match the name of the active state in the statemachine?
AnimatorStateInfo.IsTag(tag)Does tag match the tag of the active state in the statemachine.