Home > @esengine/ecs-framework-monorepo > ComponentSparseSet > queryMultipleOr
ComponentSparseSet.queryMultipleOr() method
多组件查询(OR操作)
查找包含任意一个指定组件的实体。
Signature:
typescript
queryMultipleOr(componentTypes: ComponentType[]): Set<Entity>;
Parameters
Parameter | Type | Description |
---|---|---|
componentTypes | 组件类型数组 |
Returns:
Set<Entity>
满足条件的实体集合