Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Screen Orientation on iOS

Discussion in 'iOS and tvOS' started by 62316e, Aug 12, 2015.

?

Same bugs from 4.3 still not fixed

  1. Yes

    1 vote(s)
    33.3%
  2. No

    0 vote(s)
    0.0%
  3. Unity Buggy Hell. Won't fix.

    3 vote(s)
    100.0%
Multiple votes are allowed.
  1. 62316e

    62316e

    Joined:
    Aug 20, 2014
    Posts:
    7
    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?
     
    ffbarney likes this.
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    >>Screeen oriented as expected but in opposite way.
    did you try to read docs?
    http://docs.unity3d.com/ScriptReference/ScreenOrientation.html
    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
     
  3. 62316e

    62316e

    Joined:
    Aug 20, 2014
    Posts:
    7
    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'..
     
  4. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    so what does it have to do with ios?
     
  5. 62316e

    62316e

    Joined:
    Aug 20, 2014
    Posts:
    7
    In Unity Landscape Right = xCode landscape Left. Is thats ok?
     
  6. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,272
    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