Commit 5a311946 authored by limingzhe's avatar limingzhe

fix: debug

parent 6ff0bd97
......@@ -706,7 +706,10 @@ export default class middleLayer extends cc.Component {
// this.curBundle.releaseUnusedAssets();
const oldBundle = cc.assetManager.getBundle(this.curBundle.name);
oldBundle?.releaseAll();
cc.assetManager.removeBundle(oldBundle);
this.curBundle = null;
}
});
......
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