Equals
Evaluates if a vector and obejct are equal to each other.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(Object)
Evaluates if a vector and obejct are equal to each other.
public override readonly bool Equals(object other)
Parameters
The object to compare.
Returns
Type | Description |
|---|---|
| bool | True if the object is equal to the vector. |
Equals(Vector2Int)
Evaluates if two vectors are equal to each other.
public readonly bool Equals(Vector2Int other)
Parameters
The vector to compare.
Returns
Type | Description |
|---|---|
| bool | True if the vectors are equal. |
Equals(Vector2Int)
Evaluates if two vectors are equal to each other.
public readonly bool Equals(in Vector2Int other)
Parameters
The vector to compare.
Returns
Type | Description |
|---|---|
| bool | True if the vectors are equal. |