How to find min/max x/y coordinates?

Hi,

For a tile based 2D games, how can I find the min. & max. x/y coordinates based on the current screen resolution? In other words how can I find out how many tiles I can fit into the screen and were where the starting & ending x/y coordinates?

If the camera is orthographic, it can see, relatively, from -orthographicSize * aspect to orthographicSize * aspect in x and from -orthographicSize to orthographicSize in y. Or Z, depending on which direction you’re looking at.