Exists
Checks whether an entity exists in any world.
阅读时间1 分钟最后更新于 1 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
Exists(Entity)
Checks whether an entity exists in any world.
public static bool Exists(Entity entity)
Parameters
The entity.
Returns
Type | Description |
|---|---|
| bool | True if the entity exists. |
Exists(WorldUnmanaged, Entity)
Checks whether an entity exists in the given world.
public static bool Exists(WorldUnmanaged world, Entity entity)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the entity exists in |