Files
cocos4/docs/cocos2d/core/textures/getTextureForKey.js
T

3 lines
76 B
JavaScript

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