Documentation

Unity Engine

Download Unity

Unity Engine

GetSingletonEntity<T>()

Gets the Entity instance for a singleton.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
Warning
Deprecated. Use SystemAPI.GetSingletonEntity instead (RemovedAfter Entities 1.0)
public Entity GetSingletonEntity<T>()

Returns

Type

Description

EntityThe entity associated with the specified singleton component.

Remarks

Additional Resources: EntityQuery.GetSingletonEntity