AnimationStateData

spine.AnimationStateData (Class)

Stores mix (crossfade) durations to be applied when {@link AnimationState} animations are changed.

Instance Members

spine
skeletonData: SkeletonData


spine
tempAnimationStateDataKey: AnimationStateDataKey

spine
defaultMix: Float

spine
getSkeletonData(): SkeletonData

The SkeletonData to look up animations when they are specified by name.

Returns
SkeletonData

spine
setMixByName(fromName: String, toName: String, duration: Float): Void

Sets a mix duration by animation name.

See {@link #setMix(Animation, Animation, float)}.

Name Type
fromName String
toName String
duration Float

spine
setMix(from: Animation, to: Animation, duration: Float): Void

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

spine
getMix(from: Animation, to: Animation): 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

spine
getDefaultMix(): Float

The mix duration to use when no mix duration has been defined between two animations.

Returns
Float

spine
setDefaultMix(defaultMix: Float): Void
Name Type
defaultMix Float

spine
new(skeletonData: SkeletonData): Void
Name Type
skeletonData SkeletonData