Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Animator Actions»Get Animator Current State Inf…
Index
Navigation
Community Wiki

Get Animator Current State Info

Gets the current State information on a specified layer

Game Object
The target.
Layer Index
The layer's index
Name
The layer's name.
Name Hash
The layer's name Hash. Obsolete in Unity 5, use fullPathHash or shortPathHash instead, nameHash will be the same as shortNameHash for legacy
Tag Hash
The layer's tag hash
Is State Looping
Is the state looping. All animations in the state must be looping
Length
The Current duration of the state. In seconds, can vary when the State contains a Blend Tree
Normalized Time
The integer part is the number of time a state has been looped. The fractional part is the % (0-1) of progress in the current loop
Loop Count
The integer part is the number of time a state has been looped. This is extracted from the normalizedTime
Current Loop Progress
The progress in the current loop. This is extracted from the normalizedTime
Every Frame
Repeat every frame.
Every Frame Option
Select when to perform the action, during OnUpdate, OnAnimatorMove, OnAnimatorIK

 


Last modified on 5/10/2016 3:18 AM by User.

  • RSS Feed