Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

boolTrue 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

boolTrue if the EntityIds are equal; otherwise, false.

Equals(int)

Determines whether the specified integer value is equal to this EntityId.
Warning
Removed. EntityId will not be representable by an int in the future. This equals will be removed in a future version.
public bool Equals(int other)

Parameters

other

The integer value to compare with this EntityId.

Returns

Type

Description

boolTrue if the integer representation equals this EntityId; otherwise, false.