ドキュメント

Unity Engine

Download Unity

Unity Engine

implicit operator EntityId

Converts an entity to the EntityId with the same index and version.
読み終わるまでの所要時間 1 分最終更新 18日前

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

entity

The entity to convert.

Returns

Type

Description

EntityIdThe 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

entityId

EntityId
The EntityId to convert.

Returns

Type

Description

EntityThe corresponding entity.