Search Issue Tracker

Status: Active

Votes

173

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.

Comments (65)

  1. 94bf64f5bacf750f21913ad404945612?d=mm

    Numa

    Mar 01, 2017 02:19

    Still happening in 5.5.1p4 :(

  2. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Feb 28, 2017 15:16

    still have the same bug on the latest release Unity 5.5.2, why this bug takes so long to fix?
    Is there anyway to work around this, I can't do anything but wait now.

    problem appears on iPhone6, iPhone se, iPhone 5 with iOS 10.

  3. 9f2c5730be9da8e3eeb23b40e26607ed?d=mm

    gbabic

    Feb 28, 2017 05:55

    Still seeing this in 5.5.2f1 for iOS

  4. 52cabaf140fecc32e454083866498d05?d=mm

    WhiteLotus

    Feb 14, 2017 13:40

    Fix This One As Soon As possible..

  5. 4b38dae05c4e294ee8362ec988231815?d=mm

    matbou

    Feb 10, 2017 17:13

    I am afraid the patch 5.5.1p3 does not fix the issue.
    When the rotation fails, a black area still appears at the bottom of the screen, and half of the game view is still not visible.

  6. A6de77c150807dc1bc1b8053a4247f8a?d=mm

    andyvene

    Feb 10, 2017 15:39

  7. 4b38dae05c4e294ee8362ec988231815?d=mm

    matbou

    Feb 07, 2017 17:14

    Hi guys! Any news?

  8. 4b38dae05c4e294ee8362ec988231815?d=mm

    matbou

    Feb 05, 2017 16:24

    Still waiting for a fix !

  9. 72a9e17fe561f0fa094739a4ae04b690?d=mm

    Erothez

    Feb 05, 2017 13:22

    Can't believe this hasn't been fixed yet, completely breaks the app when it happens.

  10. 8f1f9988acfe862cc347ee24d2860b20?d=mm

    VolkerRitzhaupt

    Jan 26, 2017 11:12

    Same as NITROY2Ks Problem: On 5.5.1f1: when switched to 60 fps and only allowing landscape-orientations, an app will crash if the power-button is pressed and pressed again to re-activate the screen.

All about bugs

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