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

Method getEntityInfo

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

* 获取实体调试信息

(entity: Entity)

Source from the content-addressed store, hash-verified

238 * 获取实体调试信息
239 */
240 public getEntityInfo(entity: Entity): EntityDebugInfo {
241 const components = entity.components;
242
243 return {
244 id: entity.id,
245 name: entity.name,
246 enabled: entity.enabled,
247 tag: entity.tag,
248 componentCount: components.length,
249 components: components.map((comp) => this.getComponentInfo(comp))
250 };
251 }
252
253 /**
254 * 获取组件调试信息

Callers 3

getSceneInfoMethod · 0.95
queryEntitiesMethod · 0.95

Calls 2

getComponentInfoMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected