Documentation

Unity Engine


Unity Engine


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 static Entity GetSingletonEntity<T>() where T : unmanaged

Returns

Type

Description

EntityThe entity associated with the specified singleton component.

Remarks

Not working in Entities.ForEach, IJobEntity, and Utility methods
Additional Resources: EntityQuery.GetSingletonEntity