Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Some android devices reporting swapped screen width and height

$
0
0
I'm trying to change my layout based on whether the device is in portrait or landscape mode. I do this by looking at Screen.width vs Screen.height. In the Unity editor, and on my own Android test tablet, this works fine. But a number of my test users have Android phones that are flat-out lying, reporting the width as the height and vice versa.

Example:

Note...

Some android devices reporting swapped screen width and height

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>