bool IsName (string name)
Does name match the name of the active state in the statemachine?
bool IsTag (string tag)
Does tag match the tag of the active state in the statemachine.
int fullPathHash get
The full path hash for this state. The hash is generated using Animator.StringToHash.
int nameHash get
The hashed name of the State.
int shortNameHash get
The hash is generated using SAnimator.StringToHash. The hash does not include the name of the parent layer.
float normalizedTime get
Normalized time of the State. 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.
float length get
Current duration of the state. In seconds Can vary when the State contains a Blend Tree.
float speed get
The playback speed of the animation. 1 is the normal playback speed. A negative playback speed will play the animation from the end.
float speedMultiplier get
_The speed multiplier for this state.
A negative speed multiplier will play the animation backwards. If no speed parameter as been set for this SAnimatorState, the default value will be 1._
int tagHash get
_The Tag of the State.
The hash is generated using SAnimator.StringToHash._
bool loop get
Is the state looping. All animations in the state must be looping.
float Length get
Current duration of the state. In seconds Can vary when the State contains a Blend Tree
Function Name |
---|
Property Name |
---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
bool IsName (string name)
bool IsTag (string tag)
int fullPathHash get
int nameHash get
int shortNameHash get
float normalizedTime get
float length get
float speed get
float speedMultiplier get
int tagHash get
bool loop get
float Length get