Commit a7cd45b8 authored by liujiangnan's avatar liujiangnan

debug

parent c8bd6557
......@@ -518,10 +518,10 @@ export default class NewClass extends middleLayerBase {
});
}
deepDrog(cc.find("Canvas"));
// 释放bundle
const bd = cc.assetManager.getBundle(this.oldSceneName);
bd.releaseAll();
cc.assetManager.removeBundle(bd);
// 释放bundle(正常情况下是不用释放的,如果非要释放则需要选择固定的时机,释放安全的bundle, 否则频繁释放与加载会产生不可预料的错误)
// const bd = cc.assetManager.getBundle(this.oldSceneName);
// bd.releaseAll();
// cc.assetManager.removeBundle(bd);
// 释放远程加载的资源
cc.assetManager.assets.forEach(item => {
if(item.nativeUrl.indexOf(`h5template`)==-1 && item.nativeUrl.indexOf(`dist`)==-1 && item.nativeUrl.indexOf(`http`)>-1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment