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

Constructor

new(skeletonData:SkeletonData)

Variables

@:value(new AnimationStateMap(51, 0.8))animationToMixTime:AnimationStateMap = new AnimationStateMap(51, 0.8)

@:value(new AnimationStateDataKey())tempAnimationStateDataKey:AnimationStateDataKey = new AnimationStateDataKey()

@:value(0)defaultMix:Float = 0

Methods

getSkeletonData():SkeletonData

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

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

Sets a mix duration by animation name.

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

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}.

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.

getDefaultMix():Float

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