ECS Framework API / IEntityDebugData
Interface: IEntityDebugData
Defined in: packages/core/src/Types/index.ts:320
实体调试数据接口
Properties
totalEntities
totalEntities:
number
Defined in: packages/core/src/Types/index.ts:322
总实体数
activeEntities
activeEntities:
number
Defined in: packages/core/src/Types/index.ts:324
激活实体数
pendingAdd
pendingAdd:
number
Defined in: packages/core/src/Types/index.ts:326
待添加实体数
pendingRemove
pendingRemove:
number
Defined in: packages/core/src/Types/index.ts:328
待移除实体数
entitiesPerArchetype
entitiesPerArchetype:
object[]
Defined in: packages/core/src/Types/index.ts:330
按Archetype分组的实体分布
signature
signature:
string
count
count:
number
memory
memory:
number
topEntitiesByComponents
topEntitiesByComponents:
object[]
Defined in: packages/core/src/Types/index.ts:336
组件数量最多的前几个实体
id
id:
string
name
name:
string
componentCount
componentCount:
number
memory
memory:
number
entityDetails?
optionalentityDetails:object[]
Defined in: packages/core/src/Types/index.ts:343
实体详情列表
id
id:
string|number
name?
optionalname:string
tag?
optionaltag:string
enabled
enabled:
boolean
componentCount
componentCount:
number
components
components:
string[]
entityHierarchy?
optionalentityHierarchy:object[]
Defined in: packages/core/src/Types/index.ts:352
实体层次结构(根实体)
id
id:
number
name
name:
string
active
active:
boolean
enabled
enabled:
boolean
activeInHierarchy
activeInHierarchy:
boolean
componentCount
componentCount:
number
componentTypes
componentTypes:
string[]
parentId
parentId:
null|number
children
children:
IEntityHierarchyNode[]
depth
depth:
number
tag
tag:
number
updateOrder
updateOrder:
number
entityDetailsMap?
optionalentityDetailsMap:Record<number, {id:number;name:string;active:boolean;enabled:boolean;activeInHierarchy:boolean;destroyed:boolean;tag:number;updateOrder:number;componentMask:string;parentId:null|number;parentName:null|string;childCount:number;childIds:number[];depth:number;components:object[];componentCount:number;componentTypes:string[]; }>
Defined in: packages/core/src/Types/index.ts:367
实体详细信息映射