Skip to content

format

typescript
Vector3.SetValues(x, y, z)

class: Vector3

description

Set the x, y, and z components of the vector.

parameter

param_nametypedescription
xnumberThe x component.
ynumberThe y component.
znumberThe z component.

reture

typedescription
void

code example

typescript
let a = new Vector3(1,2,3);
a.SetValues(4,5,6);
Debug.Log("a is",a);