报错
Sorry can not load 'Texture/PKP_res/image_bm.png' because it is not placed in the 'resources' folder.
加载的代码
sprite.spriteFrame = new cc.SpriteFrame(cc.url.raw("Texture/PKP_res/image_bm.png"));
报错
Sorry can not load 'Texture/PKP_res/image_bm.png' because it is not placed in the 'resources' folder.
加载的代码
sprite.spriteFrame = new cc.SpriteFrame(cc.url.raw("Texture/PKP_res/image_bm.png"));
动态加载应该用cc.loader.load吧?
动态资源要放在resources目录下