Screen Orientation on iOS

Hi,

Unity: 5.1/5.2b6 iPhone 5, iOS 8.4, xCode 6

I’m just trying to make my game works in Landscape Right mode.

  1. Create new project name it UnityBuggyHell
  2. Add canvas with a button
  3. Goto Android player settings select → Landscape Right
  4. Build

Screeen oriented as expected but in opposite way.

Now goto iOS build settings and pick Landscape Right, both splash and canvas are upside down. Same in xcode, no matter what orientation you choose it always picks Landscape Left as default.

Now when using official Google AdMob interstitial it always appears Up side down.

Then splash screen appear in wrong left and in a second it changes to right.

Any explanation for this? Won’t Fix again?

1 Like

Screeen oriented as expected but in opposite way.
did you try to read docs?
Unity - Scripting API: ScreenOrientation
LandscapeRight: Landscape orientation, clockwise from the portrait orientation.
it is done this way for historical reasons - initially there was only device orientation on ios, and interface orientation (used here) is opposite from device for landscapes.

For the second part of your post - i cannot quite parse what you are trying to do

I will try to explain one more time.

I’m building app in Landscape Right mode for Android.
Screen rotation is locked. I run the app and it runs in expected Landscape Right mode. But when i disable screen rotation it automatically rotates to landscape left no matter what side device is.

Splashes jumps from one side to another, ads appears up side down. I’ve checked other games from google play same issues. Nothing works as expected… i only hear ‘history and won’t fix’…

so what does it have to do with ios?

In Unity Landscape Right = xCode landscape Left. Is thats ok?

yes, the unity landscape orientations naming is opposite to Apple’s, i’ve opened a bug #460473 long ago - mistakenly tagged as Documentation bug, sadly - which was closed shortly thereafter
but don’t change orientation settings in Xcode project, switch it in unity
however - the landscape orientation naming in unity should be consistent with apple’s imo - don’t know how it is handled on androids