Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • 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

length Current duration of the state.
loop Is the state looping.
nameHash Name of the State.
normalizedTime Normalized time of the State.
tagHash The Tag of the State.

Functions

IsName Does name match the name of the active state in the statemachine?
IsTag Does tag match the tag of the active state in the statemachine.