wiki.sine.space | sinespace

Scripting/SAnimatorStateInfo

From wiki.sine.space
Revision as of 09:59, 12 June 2021 by Voidtech (Talk | contribs) (Created page with "=Members= {{ScriptFunction|bool|isName|(string name)|Does name match the name of the active state in the statemachine?|5=<pre></pre>}} {{ScriptFunction|bool|isTag|(string t...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Members

isName

bool isName (string name)

Does name match the name of the active state in the statemachine?


isTag

bool isTag (string tag)

Does tag match the tag of the active state in the statemachine.



Properties

fullPathHash

int fullPathHash { get; }

The full path hash for this state.


nameHash

int nameHash { get; }

The hashed name of the State.


shortNameHash

int shortNameHash { get; }

The hash is generated using SAnimator.StringToHash. The hash does not include the name of the parent layer.


normalizedTime

float normalizedTime { get; }

Normalized time of the State.


length

float length { get; }

Current duration of the state.


speed

float speed { get; }

The playback speed of the animation. 1 is the normal playback speed.


speedMultiplier

float speedMultiplier { get; }

The speed multiplier for this state.


tagHash

int tagHash { get; }

The Tag of the State.


loop

bool loop { get; }

Is the state looping.


Length

float Length { get; }

Current duration of the state.