文档

Unity Engine

Unity Engine

GetSingletonEntity<T>()

Gets the Entity instance for a singleton.
阅读时间1 分钟最后更新于 19 天前

Definition

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