- Home /
Question by
tharinduwika · Jan 29, 2021 at 01:01 PM ·
screenscreen orientation
Screen Rotation doesn't change with scene to scene
Hello guys, I have a problem with my game rotation.
I want my main menu to be portrait and the rest of the levels in landscape orientation.
So. What i did was, player settings > resolution and presentation > orientation > default orientation > Landscape left.
And I added the following code to the main menu script.
Screen.orientation = ScreenOrientation.Portrait;
But in the publishing stage, all the screens are portrait and even it’s not rotating. What may be the reason for this problem?
Thank you very much in advance..
Comment