中文
Appearance
Vector2.sqrMagnitude
Vector2
(只读)返回当前向量对象的平方长度。
number
let rhs = new Vector2(3, 4); Debug.Log(rhs.sqrMagnitude); // 25