WithAnyChunkComponentRW<T>()
Add an optional Chunk Component type to the query.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public SystemAPIQueryBuilder WithAnyChunkComponentRW<T>()
Returns
Type | Description |
|---|---|
| SystemAPIQueryBuilder | The builder object that invoked this method. |
Remarks
To match the resulting query, an Entity must have at least one of the query's optional component types, specified using either SystemAPIQueryBuilder.WithAny or SystemAPIQueryBuilder.WithAnyChunkComponent. Chunk components are a distinct component type, which are different from adding the same type as a standard component.
Compare this to WithAllChunkComponent@@@@1
To add additional optional Chunk Components, call this method multiple times.