Search Issue Tracker

Fixed in Unity 2017.2

Votes

200

Found in

5.4.0f3

Issue ID

835745

Regression

No

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

iOS

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 2No workaround

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

Devices:
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 (85)

  1. A1c24765ab0df5324f803b3214c8d374?d=mm

    yongji16

    May 11, 2017 01:53

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

  2. B64dcb87cefe9a1e6bd9ae0052fc9cc2?d=mm

    SagoNik

    May 09, 2017 21:09

    using 5.4.3f1, seeing this issue on iOS 10, looking forward to the fix.

  3. 7a17223be0217e9bfffbc11e264ba036?d=mm

    MaskedMouse

    May 08, 2017 11:04

    about bloody time it is in review, hopefully this fixes the problems with Google VR as well

  4. 929d54d75ba3f6508ef70a5f1e5e2e89?d=mm

    tertle

    May 04, 2017 00:49

    Hey guys, there is a workaround that I happened to stumble upon that someone else found which we've been using in our projects: https://gist.github.com/Ethan-VisualVocal/286ebae00eb3100885b19c90e8b9ff52

    Still ridiculous his hasn't been fixed as it's not a fantastic solution.

  5. 827e82f2942f5fc32d443cae80dd1cf1?d=mm

    scott5678

    Apr 25, 2017 20:28

    Still an issue, completely breaks all of our apps. Please fix!

  6. 33b04c0da1f5cc264b28d074bebaecfe?d=mm

    Darkwing_Duck

    Apr 24, 2017 10:53

    This issue is killing me;) Please, fix it asap!

  7. E4ce1bec4b919cdbbff84ac7e29506e1?d=mm

    ToadieTechnika

    Apr 18, 2017 07:13

    This issue had gone haywire, please vote for this bug.

  8. A101d226fc87c6f00700f16f06a410f0?d=mm

    Itzhak_P

    Apr 09, 2017 09:48

    Any News on this?

  9. 9f2c5730be9da8e3eeb23b40e26607ed?d=mm

    gbabic

    Mar 31, 2017 00:20

    Please address this Unity, this bug is affecting our delivery!

  10. 6f6829692bd1ebc92bdc165ee48a9e69?d=mm

    yujingbo

    Mar 27, 2017 09:01

    please hurry up to fix this bug, it's a very serious bug, should be the highest priority !!

All about bugs

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