format
typescript
Vector3.SetValues(x, y, z)class: Vector3
description
Set the x, y, and z components of the vector.
parameter
| param_name | type | description |
|---|---|---|
| x | number | The x component. |
| y | number | The y component. |
| z | number | The z component. |
reture
| type | description |
|---|---|
void |
code example
typescript
let a = new Vector3(1,2,3);
a.SetValues(4,5,6);
Debug.Log("a is",a);