format
typescript
Vector3.CopyFrom(from)class: Vector3
description
Changes the values of the individual components of the vector to the specified vector.
parameter
| param_name | type | description |
|---|---|---|
| from | Vector3 | The source vector to copy from. |
reture
| type | description |
|---|---|
void |
code example
typescript
let lhs = new Vector3(1,2,3);
let rhs = new Vector3(3,4,5);
lhs.CopyFrom(rhs);
Debug.Log("lhs is",lhs);