Skip to main content

AnimationPlayer

class AnimationPlayer

This component is used to be placed in objects that will be animated, placing their respective data.


public class AnimationPlayer extends Component

— Constructors (1) —

ConstructorDescription
AnimationPlayer()Creates a new AnimationPlayer.

— Methods (7) —

NameDescription
Animation getAnimation(String name)Returns the animation by an name defined to be "name" argument.
Animation getAnimation(int idx)Returns the animation by an index defined to be "idx" argument.
void addAnimation(Animation name)Adds an animation to the AnimationPlayer.
[AnimationTransition] addTransition(Animation to, int delay)Adds a transition between the animation of this AnimationPlayer and another.
[AnimationTransition] addTransition(Animation to, int delay, Curve curve)Adds a transition between the animation of this AnimationPlayer and another.
[AnimationTransition] addTransition(Animation from, Animation to, int delay)Adds a transition between the animation of this AnimationPlayer and another.
[AnimationTransition] addTransition(Animation from, Animation to, int delay, Curve curve)Adds a transition between the animation of this AnimationPlayer and another.