Screen resolution with blackboarders

Hi, my scripting is getting better and better!
However im stuck at screen resulotion. I can change it resolution but want the gamescreen to be big. For example Life Is Strange.


You see how there are black boarders? That mean that it resizes the render resolutions but not the window resolution.

How would I do this in unity c#?

Thanks.

You need two cameras, one for setting the border colors to black and the other for the main camera. Add a script to your main camera that sets pixelRect to something smaller than it’s current value, then have the second camera’s clear flags set to solid color and choose black as background, also set it’s culling mask to nothing.