Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.2.5可以,5.2.10版本不能使用。 #1

Open
l2xin opened this issue Nov 22, 2018 · 3 comments
Open

5.2.5可以,5.2.10版本不能使用。 #1

l2xin opened this issue Nov 22, 2018 · 3 comments

Comments

@l2xin
Copy link

l2xin commented Nov 22, 2018

5.2.5可以,5.2.10版本不能使用。你的工程运行结果如下:

load json default.res.json
Main.ts:78 load json config/1.json
Main.ts:78 load json config/2.json
Main.ts:78 load json config/3.json
Main.ts:78 load json config/4.json
  • 问题1:
    RES.config.config.resourceRoot; RES.config已经没有

  • 问题2:
    5.2.10加了这句data["root"] = ''; ,我自己把去掉了。

 Resource.prototype.addResourceData = function (data) {
	//fixed by l2xin 不明白为什么
        //data["root"] = '';
        RES.config.addResourceData(data);
 };
  • 问题3:

下面这样写3个文件是ok的,多加一个就失败

if (!RES.hasRes(name)) {
    const url = "total.json";
    const type = 'json';
    const root = "resource/"; //ResourceManager.Instance.ResourceRoot;
    const resource = { name, url, type, root };
    RES.$addResourceData(resource);
    await RES.getResAsync(name);
    this.totalContent = RES.getRes(name);
}
else {
    if (this.totalContent == null) {
        await RES.getResAsync(name);
        this.totalContent = RES.getRes(name);
    }
}
@jinqi166
Copy link

5.2.12一样有这个问题,卡在 await RES.loadGroup("preload", 0, loadingView); 这里没返回了。

@jinqi166
Copy link

问题出在assetsmanager里

@hzj730
Copy link

hzj730 commented May 9, 2019

请问能对应新版本的assetsmanager更新一下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants