文档

Unity Engine

Unity Engine

EntityExists(Entity)

Reports whether the specified entity exists. Does not consider whether this buffer exists on the given entity.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool EntityExists(Entity entity)

Parameters

entity

The referenced entity.

Returns

Type

Description

boolTrue if the entity exists, regardless of whether this entity has the given buffer.

Remarks

Additional Resources: BufferLookup<T>.TryGetBuffer