screenBounds = new RectInt(Mathf.RoundToInt(min.x), Mathf.RoundToInt(min.y), Mathf.RoundToInt(max.x - min.x), Mathf.RoundToInt(max.y - min.y));
Exemple #2
0
 return(new Vector2Int(Mathf.RoundToInt(v.x), Mathf.RoundToInt(v.z)));