Home > @esengine/ecs-framework-monorepo > IComponentIndex > query
IComponentIndex.query() method
查询包含指定组件的实体
Signature:
typescript
query(componentType: ComponentType): Set<Entity>;
Parameters
Parameter | Type | Description |
---|---|---|
componentType |
Returns:
Set<Entity>