Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 bool Equals(object other)

Parameters

other

The object to compare.

Returns

Type

Description

boolTrue if the object is equal to the vector.

Equals(Vector2Int)

Evaluates if two vectors are equal to each other.
public bool Equals(Vector2Int other)

Parameters

The vector to compare.

Returns

Type

Description

boolTrue if the vectors are equal.