- Home /
Screen orientation change in scenes (unwanted effect)
Hello, I have problem and I couldn't find answer yet. My problem is that my every game scene except scene with number 0 in build settings is changing orientation to portrait. How does it looks like? In my Player Settings I have Default Orientation set to Landscape Left. My first scene is menu and when I will start a game orientation is okay. Then I start another scene with
Application.LoadLevel("scene002");
[where scene002 is scene name] and this scene is displayed wrong, in portrait mode... Next scene also is displayed wrong. Only first scene is displayed correctly. If I will move second scene in Build settings to be the first, it will start on the game start and it will be displayed correctly. Then if I will finish level and another scene is started (level 2) then it is displayed wrong, in portrait mode...
Any ideas?
Answer by AdamSt · Sep 06, 2013 at 09:07 PM
Finally, on my player GameObject there was a Player Controls (Script), and in it, i unintentially unchecked "Horizontal Orientation", what caused orientation to change. Checking this box again fixed it, game is again in landscape mode.