- Home /
Question by
rsubedi · Aug 31, 2018 at 02:07 PM ·
androidtouch controlsscreenorientation
Changing Screen Orientation causes touch coordinates being wrong
My game has default Landscape left orientation but I have to make one scene with Portrait orientation. So I used Screen.orientation = ScreenOrientation.Portrait;
This works perfectly in most of Android devices but I got some unusual bug in Xiaomi MI 6 device. This rotates the screen but touch positions of each objects are at random locations in the screen. If I press home button and again resume the game from recent apps, everything works fine.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612173830im_/https://answers.unity.com/themes/thub/images/avi.jpg)