Unity 2018.2.10f1 not correct resolution Android 9.0
Good afternoon, I ran into a problem. On Android version 9.0. I can’t reduce the screen resolution for different devices. Due to the fact that the phone does not start the game in full screen mode, but with black bars at the edges. Screen resolution is always maximum. Which causes an increased load on phones of a lower level.
An example script, it works fine on versions of Android 8.0 and below:
#pragma strict
var rez ;
rez=Screen.currentResolution.width + "x" + Screen.currentResolution.height;
if(rez=="2340x1080" ){
Screen.SetResolution(1480, 720, true, 60);
}
On Samsung phones there is a decision that must be made manually. Open the Game Launcher, go to "Full screen apps" - and remove the auto, instead we set it - full screen. Then the game restarts. And the script begins to see the screen resolution of the phone, after which it changes to the one I set.
Your answer
Follow this Question
Related Questions
Force top black bar on Android devices 1 Answer
Resolution Of Android and IPhone. 1 Answer
Object shrinks from different screen resolution 0 Answers
Unity Andriod screen edge visual glitch 0 Answers
Android Size Different [S5] [TAB A] 1 Answer