Equals
Determines whether the specified object is equal to this EntityId.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(Object)
Determines whether the specified object is equal to this EntityId.
public override bool Equals(object obj)
Parameters
The object to compare with this EntityId. Non-EntityId values always return false.
Returns
Type | Description |
|---|---|
| bool | True if the object is an EntityId and equals this instance; otherwise, false. |
Equals(EntityId)
Determines whether the specified EntityId is equal to this EntityId.
public bool Equals(EntityId other)
Parameters
The EntityId to compare with this EntityId.
Returns
Type | Description |
|---|---|
| bool | True if the EntityIds are equal; otherwise, false. |
Equals(int)
Determines whether the specified integer value is equal to this EntityId.
public bool Equals(int other)
Parameters
The integer value to compare with this EntityId.
Returns
Type | Description |
|---|---|
| bool | True if the integer representation equals this EntityId; otherwise, false. |