# WithAnyRW

> Specify optional read-write component types that must be present.

## Definition

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

## WithAnyRW\<T>()

Specify optional read-write component types that must be present.

```csharp
public SystemAPIQueryBuilder WithAnyRW<T1>()
```

### Returns

| Type                                                                                             | Description                                                         |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| [SystemAPIQueryBuilder](/engine/7000.0/script-reference/unity/entities/systemapiquerybuilder.md) | This query builder object, to allow chaining multiple method calls. |

## WithAnyRW\<T, U>()

Specify optional read-write component types that must be present.

```csharp
public SystemAPIQueryBuilder WithAnyRW<T1, T2>()
```

### Returns

| Type                                                                                             | Description                                                         |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| [SystemAPIQueryBuilder](/engine/7000.0/script-reference/unity/entities/systemapiquerybuilder.md) | This query builder object, to allow chaining multiple method calls. |
