Cocos Creator API

1.0.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

SkeletonData

Module: sp

The skeleton data of spine.

Properties

skeletonJson Object

See http://en.esotericsoftware.com/spine-json-format

atlasText String

textures Texture2D

scale Number

A scale can be specified on the JSON or binary loader which will scale the bone positions, image sizes, and animation translations. This can be useful when using different sized images than were used when designing the skeleton in Spine. For example, if using images that are half the size than were used in Spine, a scale of 0.5 can be used. This is commonly used for games that can run with either low or high resolution texture atlases. see http://en.esotericsoftware.com/spine-using-runtimes#Scaling

_skeletonData spine.SkeletonData private

_atlasCache spine.Atlas private

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index

Methods

getRuntimeData
(
  • [quiet =false]
)
spine.SkeletonData

Get the included SkeletonData used in spine runtime.

name type description
quiet optional Boolean false

returns:

type: spine.SkeletonData

_getAtlas
(
  • [quiet =false]
)
spine.Atlas private

name type description
quiet optional boolean false

returns:

type: spine.Atlas

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index