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