Skip to content

格式

typescript
Vector3.CopyFrom(from)

所属类: Vector3

描述

将自身的各分量值变为指定的向量

参数

参数名类型描述
fromVector3要变的源向量

返回值

类型描述
void

代码示例

typescript
let lhs = new Vector3(1,2,3);
let rhs = new Vector3(3,4,5);
lhs.CopyFrom(rhs);
Debug.Log("lhs is",lhs);