# WithAny

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

## Definition

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

## WithAny\<T>()

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

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

### Returns

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

## WithAny\<T, U>()

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

```csharp
public SystemAPIQueryBuilder WithAny<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. |

## WithAny\<T, U, V>()

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

```csharp
public SystemAPIQueryBuilder WithAny<T1, T2, T3>()
```

### Returns

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

## WithAny\<T, U, V, W>()

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

```csharp
public SystemAPIQueryBuilder WithAny<T1, T2, T3, T4>()
```

### Returns

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

## WithAny\<T, U, V, W, X>()

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

```csharp
public SystemAPIQueryBuilder WithAny<T1, T2, T3, T4, T5>()
```

### Returns

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

## WithAny\<T, U, V, W, X, Y>()

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

```csharp
public SystemAPIQueryBuilder WithAny<T1, T2, T3, T4, T5, T6>()
```

### Returns

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

## WithAny\<T, U, V, W, X, Y, Z>()

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

```csharp
public SystemAPIQueryBuilder WithAny<T1, T2, T3, T4, T5, T6, T7>()
```

### Returns

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