Skip to content

format

typescript
Vector2.toString()

class: Vector2

description

Get the formatted string of the current vector.

parameter

param_nametypedescription

reture

typedescription
stringThe formatted string of the current vector.

code example

typescript
let v2 = new Vector2(1, 2);
Debug.Log(v2.ToString()); // (1, 2)