Skip to content

format

typescript
Vector3.EqualsTo(other)

class: Vector3

description

Determines whether the current Vector3 is equal to the target Vector3.

parameter

param_nametypedescription
otherVector3The target Vector3.

reture

typedescription
booleanTrue if the two Vector3 objects are equal; otherwise, false.

code example

typescript
let v3 = new Vector3(1,2,3);
let other = new Vector3(3,4,5);
Debug.Log("Is a and b equal?",v3.EqualsTo(other));