Skip to content

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

EntityQueryBuilder.without() method

添加不能包含的组件条件

返回的实体不能包含任何指定的组件类型。

Signature:

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

Parameters

Parameter

Type

Description

componentTypes

ComponentType[]

组件类型列表

Returns:

EntityQueryBuilder

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

基于 MIT 许可证发布