Creates a new AnimationSet instance.
Initializes with a set of animations that will be managed and played in the set.
The initial animations to be included in the set.
The list of animations in the set.
Indicates if the next animation to be added should be asynchronous.
Gets the total duration of all animations in the set. This is the sum of the durations of all the animations.
The total duration of the animation set.
Gets the total number of animations in the set.
The length of the animation set.
Adds a new animation to the set. The animation can either be synchronous or asynchronous. If the next animation is asynchronous, it will be appended after the last animation. If it is not asynchronous, it will play immediately after the current animation ends.
The animation to add.
Optionalasynchronous: boolean = trueWhether the animation should be added asynchronously.
Determines if the animation set is done based on the current time.
The current time of the animation.
true if the animation set is done, false otherwise.
Gets the current frame of the animation set based on the given time.
The method finds the appropriate animation to play based on the time t.
The current time of the animation.
The transformed object at the current frame.
Registers a handler that will be called whenever an animation is added to the set. The handler receives the added animation and whether it is asynchronous.
The handler to be called when an animation is added.
Sets the default object for the animation set. This object is used if no specific object is provided for an animation.
The default object to be used in animations.
Represents a set of animations that can be played sequentially or asynchronously.