format
typescript
Vector2.toString()class: Vector2
description
Get the formatted string of the current vector.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
string | The formatted string of the current vector. |
code example
typescript
let v2 = new Vector2(1, 2);
Debug.Log(v2.ToString()); // (1, 2)