使用cocos2d-x3.14.1版本,调用cc.spriteFrameCache.getSpriteFrame(name)的时候,出现返回值为 undefined。比如:cc.spriteFrameCache.getSpriteFrame(“sushi.png”);
难道教程使用的版本的接口和现在的不一样吗?
本人新手,请教各位大大,会是什么问题?
非常感谢~!
使用cocos2d-x3.14.1版本,调用cc.spriteFrameCache.getSpriteFrame(name)的时候,出现返回值为 undefined。比如:cc.spriteFrameCache.getSpriteFrame(“sushi.png”);
难道教程使用的版本的接口和现在的不一样吗?
本人新手,请教各位大大,会是什么问题?
非常感谢~!