What would be the camera size for an aspect ratio of 16:9?

I want to use a background image sized 1920 x 1080 which gives an aspect ratio of 16:9.

I figured that the pixels per unit for the image would be 1920 / 16 = 120 pixels per unit, right?
Then, I’m a little confused when it comes to calculate the size of the camera, I suppose the calculation should be 16 / 16 * 9 = 9, so the camera size should be 4.5, but when setting that the camera is too big now.

I guess I did something wrong, playing with the value of the size a little bit, a size of 3 works almost perfectly but the camera is still some pixels bigger than the image.

I just realized that the resolution that Unity was actually using for the image was 1280 x 720 instead of 1920 x 1080 which is the resolution I thought the image had.

So, to keep an aspect ratio of 16 : 9, the image should have 80 pixels per unit, and a camera size of 4.5

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms