Initial orientation on iPhone starts vertical then turns portrait, How do I stop this?

Hi. I have developed a game in landscape orientation. When I open the game my splash screen is in portrait mode. All my GUI stuff works on the phones resolution, because the game initializes in portrait none of my GUI works.

How can have the game initialize horizontally? Please note that I have chosen Landscape under Resolution and Presentation in the build settings. Another thing to note is this doesn’t happen on a iPad.

Thanks

Do you have auto-rotation on by default? I had a similar issue when developing for Android a while ago, essentially launching the splash screen in portrait because that’s how i was holding the device when I deployed. For whatever reason, auto-rotation took its job VERY seriously, even though the portrait orientations were unchecked!

If this is the case, set the default orientation to landscape right on iOS or landscape left on Android. Then in any awake function that’s called upon entering the main game, call the following code:

Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = Screen.autorotateToPortraitUpsideDown = false;

Hope this works!