The plugin for working with Spine skeletons and animator
getDuration
clip
event
Calculates the duration of an animation or list of animations.
clip
The clip to check.
event
String
The animation or animation list.
Animation duration in milliseconds.
hasAnimation
clip
event
Checks if animation exists
clip
The clip to check for an animation.
event
String
The frame label event (e.g. "onClose" to "onClose_stop")
does this animation exist?
setPosition
newPos
Updates position to a new value, and does anything that the clip needs, like updating timelines.
newPos
Number
The new position in the animation.