mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-17 03:35:49 +08:00
修复oops.gui.remove删除后台缓存界面时,未释放掉界面的节点对象问题
This commit is contained in:
@@ -170,11 +170,10 @@ export class LayerUI extends Node {
|
||||
private removeCache(prefabPath: string) {
|
||||
let viewParams = this.ui_cache.get(prefabPath);
|
||||
if (viewParams) {
|
||||
var childNode = viewParams.node;
|
||||
var comp = childNode.getComponent(DelegateComponent)!
|
||||
comp.remove(true);
|
||||
this.ui_nodes.delete(viewParams.uuid);
|
||||
this.ui_cache.delete(prefabPath);
|
||||
var childNode = viewParams.node;
|
||||
childNode.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user