Home > @esengine/ecs-framework-monorepo > IComponentIndex > queryMultiple
IComponentIndex.queryMultiple() method
批量查询多个组件
Signature:
typescript
queryMultiple(componentTypes: ComponentType[], operation: 'AND' | 'OR'): Set<Entity>;
Parameters
Parameter | Type | Description |
---|---|---|
componentTypes | ||
operation | 'AND' | 'OR' |
Returns:
Set<Entity>