- Home /
Question by
byakuyass2 · Jun 17, 2016 at 09:22 PM ·
screen.orientation
Screen.orientation working different from screen that works from build.
When i manually change the screen orientation in my script the screen.height doesnt work in a mobile, but if i select in player settings the default rotation i wanna use it works perfectly. I was wondering if i have to do something else than Screen.orientation = ScreenOrientation.LandscapeRight; before i access the values of screen.width and screen.height. Thanks in advance.
Comment
Your answer
Follow this Question
Related Questions
Screen.orientation problem with Unity 2020.3.4 - BUG? 0 Answers
Should I be checking Input.deviceOrientation, or Screen.orientation? 3 Answers
Manually setting Screen.orientation breaks AutoRotate 1 Answer
When are Screen.width and Screen.height updated after changing the Screen.orientation value? 0 Answers
Splash Screen Orientation is incorrect at start app. 0 Answers