Cocos Creator API

1.3.0

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

SkeletonData

: sp

The skeleton data of spine.

skeletonJson Object

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

atlasText String

textures cc.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 sp.spine.SkeletonData private

_atlasCache sp.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

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

Get the included SkeletonData used in spine runtime.
Returns a sp.spine.SkeletonData object.

quiet optional Boolean false

:

: sp.spine.SkeletonData

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

quiet optional boolean false

:

: sp.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