Files
cocos-engine/docs/cocos2d/core/textures/getTextureForKey.js

3 lines
76 B
JavaScript

------------------
var key = cc.textureCache.getTextureForKey("hello.png");