Header menu logo Nu

AnimationStateData Type

Stores mix (crossfade) durations to be applied when AnimationState animations are changed.

Constructors

Constructor Description

AnimationStateData(skeletonData)

Full Usage: AnimationStateData(skeletonData)

Parameters:
skeletonData : SkeletonData

Instance members

Instance member Description

this.DefaultMix

Full Usage: this.DefaultMix

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

this.GetMix

Full Usage: this.GetMix

Parameters:
Returns: float32

The mix duration to use when changing from the specified animation to the other, or the DefaultMix if no mix duration has been set.

from : Animation
to : Animation
Returns: float32

this.SetMix

Full Usage: this.SetMix

Parameters:
    fromName : string
    toName : string
    duration : float32

Sets a mix duration by animation names.

fromName : string
toName : string
duration : float32

this.SetMix

Full Usage: this.SetMix

Parameters:
Sets a mix duration when changing from the specified animation to the other.
            See TrackEntry.MixDuration.
from : Animation
to : Animation
duration : float32

this.SkeletonData

Full Usage: this.SkeletonData

Returns: SkeletonData

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

Returns: SkeletonData

Type something to start searching.