Search Issue Tracker

Fixed in Unity 2017.2.0f3

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: 2Core functionality majorly impacted

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 (92)

  1. Fc6c1174aeb52c8c7034d8ceeddd0a55?d=mm

    lowolf

    Feb 16, 2019 20:33

    Still getting 2017.4.20f2

  2. 3761278db7c2626f7283b1f330ee067e?d=mm

    izlet

    Dec 04, 2018 11:09

    Still getting problems in 2018.2.1.14

  3. 826a5b70edb342838795e146f23d6d35?d=mm

    parang7979

    Jun 04, 2018 08:38

    Just checked on 2018.1.2f1 and it's still not fixed

  4. 3c03c0f7fa20145c4b4b24bf1e86de64?d=mm

    anamta93

    Jan 18, 2018 10:38

    Just checked on 2017.2.0f3 and it's still not fixed

  5. Cf157d4e0869f265a483a175fd328228?d=mm

    Kennir

    Jan 18, 2018 05:12

    2017.3.0p2 still not fixed! our client want to kill me, Fix it asap

    Thx

  6. Cf157d4e0869f265a483a175fd328228?d=mm

    Kennir

    Jan 18, 2018 05:12

    2017.3.0p2 still not fixed! our client want to kill me, Fix it asap

    Thx

  7. Cf157d4e0869f265a483a175fd328228?d=mm

    Kennir

    Jan 18, 2018 05:12

    2017.3.0p2 still not fixed! our client want to kill me, Fix it asap

    Thx

  8. B9515eba3925464fd622f17a17b4394d?d=mm

    Startvrjack

    Dec 13, 2017 07:32

    This appears to still be broken for 2017.2.0p3 & ios 10

  9. 94bf64f5bacf750f21913ad404945612?d=mm

    Numa

    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.

  10. Dc414d9b674ed498918463583ec49b65?d=mm

    dustinkerstein

    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?

All about bugs

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