ドキュメント

Unity Engine

Download Unity

Unity Engine

GetSingleton<T>()

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

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
Deprecated. Use SystemAPI.GetSingleton instead (RemovedAfter Entities 1.0)
public T GetSingleton<T>() where T : unmanaged, IComponentData

Returns

Type

Description

TThe component.

Remarks