Skip to content

格式

typescript
Vector3.toString()

所属类: Vector3

描述

返回该向量的格式化字符串。

参数

参数名类型描述

返回值

类型描述
string按照“(x,y,z)”格式返回字符串值

代码示例

typescript
let lhs = new Vector3(1,2,3);
Debug.Log("Vector3 toString result is",lhs.toString());