There is a built-in static method for this: Vector2 v2 = new Vector2(10, 10); Vector2Int v2i = Vector2Int.RoundToInt(v2);.
確定! 回上一頁