Skip to content

格式

typescript
Vector2.y

所属类: Vector2

描述

向量的 Y 分量。

参数

参数名类型描述

返回值

类型描述
numberY 分量

代码示例

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