implicit operator EntityId
Converts an entity to the EntityId with the same index and version.
読み終わるまでの所要時間 1 分最終更新 19日前
Definition
- Type: Operator
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
implicit operator EntityId(EntityI)
Converts an entity to the EntityId with the same index and version.
public static implicit operator EntityId(Entity entity)
Parameters
The entity to convert.
Returns
Type | Description |
|---|---|
| EntityId | The corresponding EntityId. |
implicit operator Entity(Entit)
Converts an EntityId to the entity with the same index and version.
public static implicit operator Entity(EntityId entityId)
Parameters
Returns
Type | Description |
|---|---|
| Entity | The corresponding entity. |