SpineAnimation Class

Extends Mesh
Module: Animations

Spine animation object, to used with animation produced inside Esoteric spine.

Based on the official threejs runtime.

More information abou spine available here www.esotericsoftware.com.

Constructor

SpineAnimation

(
  • json
  • atlas
  • path
  • textures
)

Parameters:

  • json Object
  • atlas String
  • path String
  • textures Array

Methods

getAnimations

() Array

Get all available animations.

Returns:

Array:

Animations

getSkins

() type

Get skins available for this animation.

Returns:

type:

[description]

setAnimation

(
  • track
  • name
)

Set animation from track number and name.

Parameters:

  • track Number

    Track number

  • name String

    Animation name

toJSON

(
  • meta
)
Object

Serialize spine animation as JSON.

Parameters:

  • meta Object

Returns:

Object:

json

update

()

Update animation state.

Automatically called by the runtime.

updateGeometry

()

Update mesh geometry from animation state.

Properties

atlas

Object

Texture atlas information.

json

Object

Animation data.

textures

Array

Array of SpineTextures used by the animation.