# GetEntityQueryMask()

> Returns an EntityQueryMask, which can be used to quickly determine if an entity matches the query.

## Definition

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

```csharp
public EntityQueryMask GetEntityQueryMask()
```

### Returns

| Type                                                                                 | Description                                |
| ------------------------------------------------------------------------------------ | ------------------------------------------ |
| [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md) | The query mask associated with this query. |

### Remarks

A maximum of 1024 [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md) instances can be allocated per World. Attempting to create additional masks will throw an exception.
