Cocos Creator API

1.3.0

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

SpriteAtlas

Class for sprite atlas handling.

_uuid String 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

getTexture ( ) cc.Texture2D

Returns the texture of the sprite atlas

:

: cc.Texture2D

getSpriteFrame
(
  • key
)
SpriteFrame

Returns the sprite frame correspond to the given key in sprite atlas.

key String

getSpriteFrames ( ) [SpriteFrame]

Returns the sprite frames in sprite 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