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

Method getSceneInfo

packages/core/src/Plugins/DebugPlugin.ts:204–214  ·  view source on GitHub ↗

* 获取场景调试信息

(scene: IScene)

Source from the content-addressed store, hash-verified

202 * 获取场景调试信息
203 */
204 public getSceneInfo(scene: IScene): SceneDebugInfo {
205 const entities = scene.entities.buffer;
206 const systems = scene.systems;
207
208 return {
209 name: scene.name,
210 entityCount: entities.length,
211 systems: systems.map((sys) => this.getSystemInfo(sys)),
212 entities: entities.map((entity) => this.getEntityInfo(entity))
213 };
214 }
215
216 /**
217 * 获取系统调试信息

Callers 2

getStatsMethod · 0.95

Calls 3

getSystemInfoMethod · 0.95
getEntityInfoMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected