pub struct AnimationStateData { /* private fields */ }
Expand description

Animation settings used to instantiate AnimationState.

Spine API Reference

Mix durations can be applied to automatically blend between animations. For example, to smoothly mix between a walk and run animation for 0.2 seconds:

animation_state_data.set_mix_by_name("walk", "run", 0.2);

This operation is one way, so to blend back and forth between the two animations, two mix durations must be specified:

animation_state_data.set_mix_by_name("walk", "run", 0.2);
animation_state_data.set_mix_by_name("run", "walk", 0.2);

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.