MCPcopy Create free account
hub / github.com/esengine/esengine / destroy

Method destroy

packages/core/src/ECS/SceneManager.ts:274–282  ·  view source on GitHub ↗

* 销毁场景管理器 * * 会自动结束当前场景并清理所有资源。 * 通常在应用程序关闭时调用。

()

Source from the content-addressed store, hash-verified

272 * 通常在应用程序关闭时调用。
273 */
274 public destroy(): void {
275 this._logger.info('SceneManager destroying');
276
277 this._defaultWorld.destroy();
278 this._nextScene = null;
279 this._ecsAPI = null;
280
281 this._logger.info('SceneManager destroyed');
282 }
283
284 /**
285 * 检查是否有活跃场景

Callers 1

disposeMethod · 0.95

Calls 2

destroyMethod · 0.65
infoMethod · 0.45

Tested by

no test coverage detected