Home > @esengine/ecs-framework-monorepo > EntityDataCollector > getComponentProperties
EntityDataCollector.getComponentProperties() method
获取组件的完整属性信息(仅在需要时调用)
Signature:
typescript
getComponentProperties(entityId: number, componentIndex: number, scene?: IScene | null): Record<string, any>;
Parameters
Parameter | Type | Description |
---|---|---|
entityId | number | |
componentIndex | number | |
scene | IScene | null | (Optional) |
Returns:
Record<string, any>