ECSEntity.destroy时,自动释放显示层组件

This commit is contained in:
dgflash
2024-07-17 17:43:01 +08:00
parent da44ee3253
commit 256205510a

View File

@@ -264,7 +264,7 @@ export class ECSEntity {
}
private _remove(comp: CompType<ecs.IComp>) {
this.remove(comp, false);
this.remove(comp, true);
}
/** 销毁实体,实体会被回收到实体缓存池中 */