GetSingleton<T>()
Gets the value of a singleton component.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public T GetSingleton<T>() where T : unmanaged, IComponentData
Returns
Type | Description |
|---|---|
| T | The component. |
Remarks
Additional Resources: ComponentSystemBase.GetSingletonRW, EntityQuery.GetSingleton, EntityQuery.GetSingletonRW