()
| 184 | } |
| 185 | |
| 186 | protected override onDestroy(): void { |
| 187 | const renderSystem = getFGUIRenderSystem(); |
| 188 | if (renderSystem && this.scene) { |
| 189 | for (const entity of this.scene.entities.buffer) { |
| 190 | const fguiComp = entity.getComponent(FGUIComponent) as FGUIComponent | null; |
| 191 | if (fguiComp) { |
| 192 | renderSystem.unregisterComponent(fguiComp); |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | this._pendingLoads.clear(); |
| 198 | this._trackedStates = new WeakMap(); |
| 199 | } |
| 200 | } |
nothing calls this directly
no test coverage detected