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

Method updateScenes

packages/core/src/ECS/World.ts:402–415  ·  view source on GitHub ↗

* @zh 更新World中的所有激活Scene * @en Update all active scenes in World * * @internal Called by Core.update()

()

Source from the content-addressed store, hash-verified

400 * @internal Called by Core.update()
401 */
402 public updateScenes(): void {
403 if (!this._isActive) {
404 return;
405 }
406
407 for (const sceneName of this._activeScenes) {
408 const scene = this._scenes.get(sceneName);
409 scene?.update?.();
410 }
411
412 if (this._config.autoCleanup) {
413 this.cleanup();
414 }
415 }
416
417 /**
418 * 销毁World

Callers 4

updateAllMethod · 0.45
updateMethod · 0.45
World.test.tsFile · 0.45

Calls 3

cleanupMethod · 0.95
getMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected