ドキュメント

Unity Engine

Download Unity

Unity Engine

SetSingleton<T>(T)

Sets the value of a singleton component.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
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