implicit operator int
Implicitly converts an EntityId to an integer.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Operator
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
implicit operator int(Int3)
Implicitly converts an to an integer.
EntityIdpublic static implicit operator int(EntityId entityId)
Parameters
The to convert.
EntityIdReturns
Type | Description |
|---|---|
| int | The integer representation of the |
Remarks
This conversion exists for backward compatibility with code that contains object identifiers in integers. The resulting integer is an implementation detail: don't inspect its bits, check its sign, or sort by it.
implicit operator EntityId(EntityI)
Implicitly converts an integer to an .
EntityIdpublic static implicit operator EntityId(int intValue)
Parameters
The integer value to convert.
Returns
Type | Description |
|---|---|
| EntityId | An |
Remarks
This conversion exists for backward compatibility with code that contains object identifiers in integers. Use values directly where possible.
EntityId