format
typescript
Vector3.Clone(val)class: Vector3
description
Copy a vector.
parameter
| param_name | type | description |
|---|---|---|
| val | Vector3 | The source vector to be copied. |
return
| type | description |
|---|---|
Vector3 | Returns a new vector instance that is the same as the input parameter vector. |
code example
typescript
let rhs = new Vector3(3,4,5);
let lhs = Vector3.Clone(rhs);
Debug.Log("lhs is",lhs);