Documentation

Unity Engine


Unity Engine


SetSingleton<T>(T)

Sets 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.SetSingleton instead (RemovedAfter Entities 1.0)
public void SetSingleton<T>(T value) where T : unmanaged, IComponentData

Parameters

value

T
A component containing the value to assign to the singleton.

Remarks

Additional Resources: EntityQuery.SetSingleton