Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimatorStateInfo

Description

Information about the current or next state.

Variables

lengthCurrent duration of the state.
loopIs the state looping.
nameHashName of the State.
normalizedTimeNormalized time of the State.
tagHashThe Tag of the State.

Functions

IsNameDoes name match the name of the active state in the statemachine?
IsTagDoes tag match the tag of the active state in the statemachine.