# GetSingletonEntity<T>()

> Gets the Entity instance for a singleton.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use SystemAPI.GetSingletonEntity instead (RemovedAfter Entities 1.0)

```csharp
public Entity GetSingletonEntity<T>()
```

### Returns

| Type                                                               | Description                                                   |
| ------------------------------------------------------------------ | ------------------------------------------------------------- |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The entity associated with the specified singleton component. |

### Remarks

Additional Resources: [EntityQuery.GetSingletonEntity](/engine/7000.0/script-reference/unity/entities/entityquery/getsingletonentity.md)
