# WithOptions(EntityQueryOptions)

> Specify your own EntityQueryOptions.

## Definition

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

```csharp
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5> WithOptions(EntityQueryOptions options)
```

### Parameters

**** (\[EntityQueryOptions]\(/engine/7000.0/script-reference/unity/entities/entityqueryoptions)): The options for this query

### Returns

| Type                                                                                                                      | Description                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerableWithEntity\<T, U, V, W, X>](/engine/7000.0/script-reference/unity/entities/queryenumerablewithentity5.md) | QueryEnumerableWithEntity, which allows enumerating over all RefRO, RefRW, components, EnabledRefRO, EnabledRefRW and entities that match the constructed Query. |

### Remarks

This method may not be invoked more than once for each query description. Subsequent calls will override previous options, rather than adding to them. Use the bitwise OR operator '|' to combine multiple options.
