Documentation

Unity Engine


Unity Engine


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
Warning
Deprecated. Use SystemAPI.GetSingleton instead (RemovedAfter Entities 1.0)
public T GetSingleton<T>() where T : unmanaged, IComponentData

Returns

Type

Description

TThe component.

Remarks