console.log(“start to load prefab:”+sPath);
cc.loader.loadRes(sPath, function (err, prefab){
if(err!=null){
console.log(“load prefab failed! path:”+sPath+“error:”+err);
return;
}
aPerfabList.set(sPath,prefab);
cc.log(‘init and save prefab:’+sPath);
});
在cocos creator上预览完全没问题,可以加载成功。但是发布到微信开发者工具上面,就不能成功。具体表现为,只能看到输出:start to load prefab:prefab/effect/cast/node_effect_cast_1
后边加载成功和失败的输出都不会出现。
cocos creator用的是1.91版本
有没有遇到过的大牛给支个招,感谢!