Search Issue Tracker

Fixed in 2017.2.0f3

Fixed in 5.4.X, 5.5.X, 5.6.X, 2017.1.X



Found in


Issue ID




[iOS] Changing the screen orientation via a script sometimes results in corrupted view on iOS 10



When the orientation of the screen is changed via a script (with Screen.orientation) on iOS 10 devices, sometimes the screen remains in portrait orientation, but the game view gets flipped and goes over the edge of the screen and leaves black area in the bottom part of the screen.

Steps to reproduce:
1) Open the attached project.
2) Build 'MainScene' for iOS.
3) Run on an iOS 10 device.
4) Press the 'Switch to landscape' UI button.

If the button is clicked 2-3 seconds after launch - the rotation should fail - black area appears at the bottom of the screen, half of the game view is not visible. If it does not, quit the app completely, re-launch it and repeat step 5). This occurs with both Metal and OpenGLES on iOS 10.

Reproduced on:
5.5.0b5, 5.4.1p3, 5.3.6p6

iPhone 7 iOS 10 - reproduced
iPhone 7 iOS 10.1 - reproduced
iPhone 7 Plus iOS 10.0.2 - reproduced
iPhone 5 iOS 10 - not reproduced
iPad Mini 2 iOS 10 - not reproduced
iPhone 5S iOS 9.2.1 - not reproduced
It should also be reproducible on iPhone 6.
iPhone 6S iOS 10.2 - reproducible


Fixed in 2017.1.0b10, 5.6.2p1, 5.5.4p1, 5.4.5p4

Comments (94)

  1. 94bf64f5bacf750f21913ad404945612?d=mm


    Oct 25, 2017 05:46

    Yeah that's the same issue (at least from what I'm seeing). 5.6.4 release notes say: OS : Fixed the underlying behaviour of the iOS player in order to make the Unity window the key window after an orientation change.

    But it's still broken.

  2. Dc414d9b674ed498918463583ec49b65?d=mm


    Oct 23, 2017 18:26

    This may be a different issue, but it seems related - On iOS 11.0.3 and a Unity Cardboard app built with 2017.3.0b3, when the app is launched with a deep link while in portriat, half of the screen will be black. If I click on the link while in landscape the app will open correctly.

    It seems like maybe the iOS 11 update brought this issue back. Would someone else be able to confirm?

  3. E6fbd72dd7835d9275c372c8a74b225a?d=mm


    Oct 20, 2017 12:46

    Just tested on 2017.20f3 - Not Fixed

  4. 94bf64f5bacf750f21913ad404945612?d=mm


    Sep 27, 2017 11:10

    Not fixed at all.

    In 5.6.3 p2 it still happens on startup if the app is launched through a link (didFinishLaunchingWithOptions).If your app is landscape, hold device in portrait, click link, the view is now portait dimensions squeezed into a lanscape frame= half the screen is black.

    Is this actually fixed in 2017?

  5. 8f3493d9a6cbaa3f2b454333d7a92668?d=mm


    Jul 08, 2017 19:21

    This issue still occurs on 5.6.2p1, 5.6.2p2! Beside the trick I had to implement my own autorotation - very annoying.

  6. 96b18ba332391261a60788e244c75aa3?d=mm


    Jul 08, 2017 03:22

    Version 5.4.5p4 does *not* fix the bug. After upgrading from 5.4.1.p3, this still occurs with our app.

  7. 8e712151446888d886c7028540ebf4a3?d=mm


    Jul 04, 2017 15:27

    As this is marked as fixed, could someone help me with a similar problem I'm having. I'm not changing orientation in script, but I seem to be experiencing the same symptoms.

  8. 865da0d730a4019757036855bc140252?d=mm


    Jun 02, 2017 15:44

    Hey so since it's back to active, can we get a status update? We're approaching a year for basically a showstopping bug for many projects with little guidance/info from Unity. I fully understand not all bugs can be resolved quickly (nor am I asking them to be), but for showstoppers I don't think it's unreasonable for Unity to provide some context and expectations (even if it's "Hey it's really hard this may take months").

  9. 5c4a0cf4d694ed163b748ad99ee90a8d?d=mm


    May 30, 2017 11:57

    Hi guys, it seems the status has been "fix in review" for several weeks (early May).
    Can anyone provide guidance on how long fixes like this usually stay in review?
    This is affecting a live consumer app - we're desperate!
    Many thanks!

  10. A1c24765ab0df5324f803b3214c8d374?d=mm


    May 11, 2017 01:53

    Android also has this bug, using 5.3.4f1. Test Machine is SM-N900P, android os 4.4.4

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.