Skip to content

format

typescript
Vector3.CopyFrom(from)

class: Vector3

description

Changes the values of the individual components of the vector to the specified vector.

parameter

param_nametypedescription
fromVector3The source vector to copy from.

reture

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