GetSingletonEntity<T>()
Gets the Entity instance for a singleton.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public Entity GetSingletonEntity<T>()
Returns
Type | Description |
|---|---|
| Entity | The entity associated with the specified singleton component. |
Remarks
Additional Resources: EntityQuery.GetSingletonEntity