We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
app.manager.loader.loadDir({ path: 'game', bundle: 'res', onProgress: (finish, total, item) => { console.log(finish, total) }, onComplete: (items) => { } });
loadDir是否还是需要把错误信息也抛出来比较好? 原因是这样的: 使用上面的函数加载指定目录下的所有资源,其中有声音资源(声音资源比较多可能某个声音文件损坏还是怎么样),在chrome和android上面也不会有问题,能正常加载完成,但是使用safari浏览器(包括苹果手机上的)就会加载不完(不触发onComplete)。具体的错误就是大概是load web audio failed。 当然最好的办法是把声音文件修复好,但是有时候文件可能比较多,也可能是其他文件出了问题,不好定位。
The text was updated successfully, but these errors were encountered:
如果onComplete不触发的话,那似乎是Cocos没有触发,并不是XForge把回掉吞掉了
XForge/extensions/app/assets/manager/loader/LoaderManager.ts
Line 438 in 65635cd
Sorry, something went wrong.
看起来是这样,这几天忙,我过2天用cocos原始的看下吧。
No branches or pull requests
loadDir是否还是需要把错误信息也抛出来比较好?
原因是这样的:
使用上面的函数加载指定目录下的所有资源,其中有声音资源(声音资源比较多可能某个声音文件损坏还是怎么样),在chrome和android上面也不会有问题,能正常加载完成,但是使用safari浏览器(包括苹果手机上的)就会加载不完(不触发onComplete)。具体的错误就是大概是load web audio failed。
当然最好的办法是把声音文件修复好,但是有时候文件可能比较多,也可能是其他文件出了问题,不好定位。
The text was updated successfully, but these errors were encountered: