AnimationStateData
spine.AnimationStateData (Class)
Stores mix (crossfade) durations to be applied when {@link AnimationState} animations are changed.
Instance Members
The SkeletonData to look up animations when they are specified by name.
Returns |
---|
SkeletonData |
Sets a mix duration by animation name.
See {@link #setMix(Animation, Animation, float)}.
Name | Type |
---|---|
fromName |
String |
toName |
String |
duration |
Float |
Sets the mix duration when changing from the specified animation to the other.
See {@link TrackEntry#mixDuration}.
Name | Type |
---|---|
from |
Animation |
to |
Animation |
duration |
Float |
Returns the mix duration to use when changing from the specified animation to the other, or the {@link #getDefaultMix()} if no mix duration has been set.
Name | Type |
---|---|
from |
Animation |
to |
Animation |
Returns |
---|
Float |
The mix duration to use when no mix duration has been defined between two animations.
Returns |
---|
Float |
Name | Type |
---|---|
defaultMix |
Float |
Name | Type |
---|---|
skeletonData |
SkeletonData |