Skip to content

format

typescript
Vector3.Clone(val)

class: Vector3

description

Copy a vector.

parameter

param_nametypedescription
valVector3The source vector to be copied.

return

typedescription
Vector3Returns 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);