Cocos Creator API

1.2.0

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

SpriteAtlas

继承于 RawAsset
模块: cc

精灵图集资源类。

属性(properties)

_uuid String private

继承自 RawAsset:

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

返回:

类型: SpriteFrame

getSpriteFrames ( ) [SpriteFrame]

Returns the sprite frames in sprite atlas.

返回:

类型: [SpriteFrame]

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