# WithAllChunkComponentRW<T>()

> Add a required chunk component type to the query.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public EntityQueryBuilder WithAllChunkComponentRW<T>()
```

### Returns

| Type                                                                                       | Description                                  |
| ------------------------------------------------------------------------------------------ | -------------------------------------------- |
| [EntityQueryBuilder](/engine/7000.0/script-reference/unity/entities/entityquerybuilder.md) | The builder object that invoked this method. |

### Remarks

Call this method on the query builder to find entities that have all the specified chunk components. Chunk components are a distinct component type, which are different from adding the same type as a standard component. To add additional required Chunk Components, call this method multiple times.

The query will request read-only access to the referenced component(s). To request read/write access, use EntityQueryBuilder.WithAllChunkComponentRW@@\<c>1(\</c>@@0)

To add component types that are not known at compile time, use EntityQueryBuilder.WithAll@@\<c>1(\</c>@@0)
