文档

Unity Engine

Unity Engine

HasSingleton<T>()

Checks whether a singleton component of the specified type exists.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
警告
Deprecated. Use SystemAPI.HasSingleton instead (RemovedAfter Entities 1.0)
public bool HasSingleton<T>()

Returns

Type

Description

boolTrue, if a singleton of the specified type exists in the current ComponentSystemBase.World.