Fixed Ratio without soft key?
Hi. I want to fix screen aspect ratio 16:9 like this(yellow area is play area). I used to Display.SetRenderingResolution in older version of Unity, but it is not work now(2017.4.6f1). It shows horizontally stretched screen in 2960 x 1440(galaxy s8).
I tried Screen.SetResolution with fullscreen option true, but it was same as SetRenderingResolution. And it shows software keys with fullscreen false. And I tried androidmanifest android:windowSoftInputMode="stateHidden" option, it shows hidden in start, but it appears when setting screen resolution. What I want is 16:9 display with fixed aspect ratio, and the empty spaces are black without software keys.
How can I do this?
Your answer
![](https://koobas.hobune.stream/wayback/20220612172935im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making a pixelation shader to change resolutions in different areas of the screen 0 Answers
Changing Resolution in game messes up UI and Mouse Input 0 Answers
Need Help in understanding ScreenToWorldPoint 0 Answers
How to move and position things to account for different resolutions? 0 Answers
All UI elements break when setting resolution through script. [please help] 0 Answers