Skip to content

QueryArg

QueryArg = AnyComponentDef | MutWrapper<AnyComponentDef> | AddedWrapper<AnyComponentDef> | ChangedWrapper<AnyComponentDef>

Defined in: sdk/src/ecs/query.ts:115

Anything Query accepts: a component for read access, or one wrapped in Mut to write, Added() to match only entities that just gained it, or Changed() to match only those whose copy was written since the last run.