一、纹理缓存
二、精灵帧缓存
cc.SpriteFrameCache
方法列表:
addSpriteFrame(frame, frameName)
Adds an sprite frame with a given name.
addSpriteFrames(url, texture)
Adds multiple Sprite Frames from a plist or json file.
getSpriteFrame(name)
Returns an Sprite Frame that was previously added.
removeSpriteFrameByName(name)
Deletes an sprite frame from the sprite frame cache.
removeSpriteFrames()
Purges the dictionary of loaded sprite frames.
removeSpriteFramesFromFile(url)
Removes multiple Sprite Frames from a plist file.
removeSpriteFramesFromTexture(texture)
Removes all Sprite Frames associated with the specified textures.
网友评论