# WithAllRW<T1>()

> Add required component types to the query with ReadWrite mode.

## Definition

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

## WithAllRW\<T>()

```csharp
public EntityQueryBuilder WithAllRW<T1>()
```

### Returns

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

### Remarks

If a query uses the [EntityQueryOptions.FilterWriteGroup](/engine/7000.0/script-reference/unity/entities/entityqueryoptions/filterwritegroup.md) option, you must use WithAllRW to specify the query's writeable required components. Refer to the write groups guide for more information.

To match the resulting query, an Entity must have all of the query's required component types.

WithAllRW accepts up to two type arguments. You can add more component types by chaining calls together.

To request read-only access to the reference component(s), use EntityQueryBuilder.WithAll@@\<c>1(\</c>@@0)
