I just updated to Unity 2017.3.0b3 and try to build my APK app. But now I can’t switch my screen mode from full screen to 16:9 by GameTools.
I tested by Unity5.4.3p2, It worked.
My device is SamsungGalaxyS8.
I searched and know it is “Supported Aspect Ratio” but I don’t know how to fix this.
Hello,
with latest Unity versions we add an android.max_aspect attribute to the AndroidManifest by default. This causes your issue. You can get the same behaviour as in Unity5.4.3p2 by going to “Player Settings” → “Resolution and Presentation” and choosing “Legacy Wide Screen (1.86)” in “Aspect Ratio Mode”. Then we won’t add android.max_aspect attribute to the AndroidManifest.
Thank you for pointing this out. It should’ve been mentioned in 2017.2 release notes under changes / improvements (I’ll find out why it’s missing).
So missing things from the release notes are exactly what I’ve said in my previous message. We force full screen rendering on the super wide screen devices by default and this behaviour can be controlled from the “Player Settings” → “Resolution and Presentation” → “Aspect Ratio Mode”.
We’ve made this the default setting because it should not affect devices with standard wide screens in any way. One thing to note though, by the time this change was made, we were not aware that with Android Oreo the default aspect ratio will be the native aspect ratio of the device, while before Oreo it was 16:9 (more info here https://developer.android.com/guide/practices/screens_support.html#MaxAspectRatio ).
[QUOTE=We’ve made this the default setting because it should not affect devices with standard wide screens in any way. One thing to note though, by the time this change was made, we were not aware that with Android Oreo the default aspect ratio will be the native aspect ratio of the device, while before Oreo it was 16:9 (more info here Screen compatibility overview | Android Developers ).[/QUOTE]
I love how Unity team doing their job.
Firstly, there is no any word about “Native aspect ratio” option in the Android Player Settings. What is it? How it works?
Secondly, Custom aspect ratio doesn’t work. You refer to the android documentation, but Unity doesn’t follow it!
Unity just add this to the AndroidManifest.xml: “”
But if you’ll read the documentation: If you set a maximum aspect ratio, don’t forget to also set android:resizeableActivity false. Otherwise, the maximum aspect ratio has no effect.