# WithOptions(EntityQueryOptions)

> Set options for the current query.

## Definition

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

```csharp
public EntityQueryBuilder WithOptions(EntityQueryOptions options)
```

### Parameters

**** (\[EntityQueryOptions]\(/engine/7000.0/script-reference/unity/entities/entityqueryoptions)): [EntityQueryOptions](/engine/7000.0/script-reference/unity/entities/entityqueryoptions.md) flags to set for the current query

### Returns

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

### Remarks

You should not need to set these options for most queries.

You should only call WithOptions once for each query description. Subsequent calls override previous options, rather than adding to them. Use the bitwise OR operator '|' to combine multiple options.
