Skip to content

Home > @esengine/ecs-framework-monorepo > EntityQueryBuilder > withAll

EntityQueryBuilder.withAll() method

添加必须包含的组件条件

返回的实体必须包含所有指定的组件类型。

Signature:

typescript
withAll(...componentTypes: ComponentType[]): EntityQueryBuilder;

Parameters

Parameter

Type

Description

componentTypes

ComponentType[]

组件类型列表

Returns:

EntityQueryBuilder

查询构建器实例,支持链式调用

基于 MIT 许可证发布