Skip to main content

AnimationPlayer

Complete API reference for AnimationPlayer, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Animations

Component: yes


public class AnimationPlayer extends Component

Constructors

SignatureDescription
AnimationPlayer(AnimationPlayer)Executes AnimationPlayer and returns after the underlying engine call finishes.
AnimationPlayer()Creates a new instance of AnimationPlayer.

Attributes

NameTypeDescription
componentAnimationPlayerRepresents the component value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
getAnimation(String)AnimationReturns the animation with the specified name.
getAnimation(int)AnimationReturns the animation at the specified index.
setAnimation(int, Animation)voidSets the animation at the specified index to the provided animation.
getAnimationList()List<Animation>Returns a list of all animations in the AnimationPlayer.
addAnimation(Animation)voidAdds the specified Animation to the AnimationPlayer.
addTransition(Animation, float)AnimationTransitionAdds an animation transition between the current animation and the specified one (to) with a delay (delay).
addTransition(Animation, float, Curve)AnimationTransitionAdds an animation transition between the current animation and the specified one (to) with a delay (delay) and an interpolation curve (curve).
addTransition(Animation, Animation, float)AnimationTransitionAdds an animation transition between two animations (from and to) with a specified delay (delay).
addTransition(Animation, Animation, float, Curve)AnimationTransitionAdds an animation transition between two animations (from and to) with a specified delay (delay) and an interpolation curve (curve).
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.