SpineAnimation Class
Spine animation object, to used with animation produced inside Esoteric spine. These animations are created using the Spine animation studio software.
Based on the official three.js runtime code available at https:// github.com/EsotericSoftware/spine-runtimes.
More information about spine available at www.esotericsoftware.com.
Item Index
Methods
getAnimations
()
Array
Get all available animations.
Returns:
Animations
getSkins
()
Array
Get skins available for this animation.
Returns:
List of skins available for this animation.
onBeforeRender
()
Update mesh geometry from animation state before rendering.
play
()
Play animation.
setAnimation
-
track
-
animation
-
loop
Set animation from track number and name.
Parameters:
-
track
NumberTrack number.
-
animation
StringAnimation name.
-
loop
BooleanIf true the animation plays in loop.
setSkin
-
name
Set skin to be used by this animation
Parameters:
-
name
StringSkin name.
Properties
atlas
Object
Texture atlas information.
json
Object
Spine animation data.
textures
Array
Array of SpineTextures used by the animation.
Attributes
animation
Object
Animation currently playing, animations are split into tracks.
An animation (e.g. walk) can be composed of multiple tracks.
loop
Boolean
Indicates the loop mode of the animation if set true the animation starts again after it ends.