I am trying to get the main camera in my Unity project to always fill the biggest square it can in any resolution. That means it would have 2 equal pillar bars on a wider screen, but on a screen with a 1:1 ratio, it would fill the entire screen. How would I go about getting that effect?
It’s an orthographic camera, and what I’m trying to achieve is that the game, when in fullscreen, always reaches from the top to the bottom of the screen, but still is a square with a 1:1 ratio, and to have any extra space on either side of the camera be a pillar bar.