Version: 2017.3
public static Vector2Int RoundToInt (Vector2 v);

描述

通过对每个值执行 Round 操作将 Vector2 转换为 Vector2Int

因为存在浮点数到整数的转换,所以精度会降低。