Home > @esengine/ecs-framework-monorepo > EntityQueryBuilder > withAll
EntityQueryBuilder.withAll() method
添加必须包含的组件条件
返回的实体必须包含所有指定的组件类型。
Signature:
typescript
withAll(...componentTypes: ComponentType[]): EntityQueryBuilder;
Parameters
Parameter | Type | Description |
---|---|---|
componentTypes | 组件类型列表 |
Returns:
查询构建器实例,支持链式调用