Search Issue Tracker

Fixed in future release

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

  1. 9f2c5730be9da8e3eeb23b40e26607ed?d=mm

    gbabic

    Mar 31, 2017 00:20

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

  2. 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 !!

  3. Df0f69b7b89a2a3d541c0b043f2557fc?d=mm

    M40-Dev

    Mar 17, 2017 10:30

    One of the worst bugs and Unity just keep asking you to buy their 2017 pro. Sorry, no way with such poor service.

  4. 7195fe798f239c05a41facc28b9bf21e?d=mm

    Apoll0

    Mar 16, 2017 09:46

    Reproduced with iOS 10 & iPhone 6s+

  5. 811bda7559b8bb03bbac8524a51f079c?d=mm

    KingSlizzard

    Mar 13, 2017 20:37

    I can't get my app approved for itunes connect beta because of this bug....

  6. 4b38dae05c4e294ee8362ec988231815?d=mm

    matbou

    Mar 09, 2017 11:02

    After six month with this issue opened, it would be nice to have an answer from Unity...

  7. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Mar 07, 2017 02:10

    no, did not fix.

  8. 1ae1699ae39695d58ab96673619f0af8?d=mm

    voporak5

    Mar 03, 2017 14:48

    Shoulda been the one where the fixed the issue with the Facebook SDK being broken

  9. F1d321415a13b5f0bab2ebc369970ac7?d=mm

    Rubinhuang

    Mar 02, 2017 20:28

    @ VOPORAK5
    Which patches? 5.5.2 did not, did you mean 5.6.0 beta?

  10. 1ae1699ae39695d58ab96673619f0af8?d=mm

    voporak5

    Mar 02, 2017 16:16

    _CREATIO this is not the place to be reporting bugs.

    Plus that bug was fixed in one of the recent patches. Just get the latest patch and your bug should be fixed.

All about bugs

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