Home > @esengine/ecs-framework-monorepo > Entity > getDebugInfo
Entity.getDebugInfo() method
获取实体的调试信息(包含组件缓存信息)
Signature:
typescript
getDebugInfo(): {
name: string;
id: number;
enabled: boolean;
active: boolean;
activeInHierarchy: boolean;
destroyed: boolean;
componentCount: number;
componentTypes: string[];
componentMask: string;
parentId: number | null;
childCount: number;
childIds: number[];
depth: number;
indexMappingSize: number;
denseIndexMappingSize: number;
};
Returns:
{ name: string; id: number; enabled: boolean; active: boolean; activeInHierarchy: boolean; destroyed: boolean; componentCount: number; componentTypes: string[]; componentMask: string; parentId: number | null; childCount: number; childIds: number[]; depth: number; indexMappingSize: number; denseIndexMappingSize: number; }
包含实体详细信息的对象