A simple container for a list of timelines and a name.

Constructor

new(name:String, timelines:Array<Timeline>, duration:Float)

Variables

duration:Float

The duration of the animation in seconds, which is the highest time of all keys in the timeline.

finalname:String

The animation's name, which is unique across all animations in the skeleton.

finaltimelines:Array<Timeline>

Methods

apply(skeleton:Skeleton, lastTime:Float, time:Float, loop:Bool, events:Null<Array<Event>>, alpha:Float, blend:MixBlend, direction:MixDirection):Void

Applies all the animation's timelines to the specified skeleton.

Parameters:

loop

If true, the animation repeats after duration.

events

May be null to ignore fired events.

See also:

hasTimeline(id:Int):Bool