static preLoadPublicAssets(){
this.sAssetList = Loader.getRes("file_list.json")
Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true)
}
static onLoaded(res){
console.log("public assets inited !!!!")
console.log(Laya.loader.getRes("res/ui/
share@atlas0.png"))//此处会报循环引用错误,也就Android小游戏会
this.sInited = true
}
用的是fairygui,目前已经通过删除缓存文件排除是文件缓存问题。IOS 编辑器 都是正常的
