# WithEntityAccess()

> Invoke this method if you wish to retrieve a tuple with an Entity parameter, thus giving you direct access to an entity.

## Definition

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

```csharp
public QueryEnumerableWithEntity<T1> WithEntityAccess()
```

### Returns

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