文档

Unity Engine

Download Unity

Unity Engine

Exists(Entity)

Reports whether the specified Entity instance still refers to a valid entity.
阅读时间1 分钟最后更新于 20 天前

Definition

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

Parameters

entity

The entity.

Returns

Type

Description

boolTrue if the entity exists and is valid, and returns false if the Entity instance refers to an entity that has been destroyed.