Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


implicit operator int

Implicitly converts an EntityId to an integer.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Operator
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

implicit operator int(Int3)

Implicitly converts an
EntityId
to an integer.
Warning
Removed. EntityId will not be representable by an int in the future. This casting operator will be removed in a future version.
public static implicit operator int(EntityId entityId)

Parameters

entityId

The
EntityId
to convert.

Returns

Type

Description

intThe integer representation of the
EntityId
.

Remarks

This operator is obsolete. To get the raw data of an
EntityId
as a
ulong
, use EntityId.ToULong instead.

implicit operator EntityId(EntityI)

Implicitly converts an integer to an
EntityId
.
Warning
Removed. EntityId will not be representable by an int in the future. This casting operator will be removed in a future version.
public static implicit operator EntityId(int intValue)

Parameters

intValue

Returns

Type

Description

EntityIdAn
EntityId
representing the specified integer value.

Remarks

This operator is obsolete and will be removed in a future version.