mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-07 08:09:13 +08:00
5 lines
165 B
JavaScript
5 lines
165 B
JavaScript
---------------------------
|
|
var texture = cc.textureCache.addImage("hello.png");
|
|
var textureAtlas = new cc.TextureAtlas();
|
|
textureAtlas.initWithTexture(texture, 3);
|