ドキュメント

Unity Engine

Download Unity

Unity Engine

Exists(Entity)

Checks if the entity exists inside this system's EntityManager.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
注意
Deprecated. Use SystemAPI.Exists instead (RemovedAfter Entities 1.0)
public bool Exists(Entity entity)

Parameters

entity

The entity to check

Returns

Type

Description

boolTrue if the given entity exists or the entity has a Cleanup Component that is yet to be destroyed

Remarks

This returns true for an entity that was destroyed with DestroyEntity, but still has a cleanup component. Prefer ComponentLookup<T>.TryGetComponent where applicable.
Additional Resources: EntityManager.Exists