Skip to content

格式

typescript
Vector2.x

所属类: Vector2

描述

向量的 X 分量。

参数

参数名类型描述

返回值

类型描述
numberX 分量

代码示例

typescript
let lhs = new Vector2(1, 2);
Debug.Log(lhs.x); // 1