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

Method _shouldSystemRun

packages/core/src/ECS/Scene.ts:561–567  ·  view source on GitHub ↗
(system: EntitySystem)

Source from the content-addressed store, hash-verified

559 }
560
561 private _shouldSystemRun(system: EntitySystem): boolean {
562 if (!system.enabled) return false;
563 if (!this.isEditorMode) return true;
564
565 const metadata = getSystemInstanceMetadata(system);
566 return metadata?.runInEditMode !== false;
567 }
568
569 /**
570 * 执行所有系统的延迟命令

Callers 1

_runSystemPhaseMethod · 0.95

Calls 1

Tested by

no test coverage detected