Search Issue Tracker

Active

Votes

193

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

  1. 4b38dae05c4e294ee8362ec988231815?d=mm

    matbou

    Jan 20, 2017 18:47

    I don't understand how come this bug is not fixed yet!
    Please do something about it Unity.

  2. 64d4eb04fbc26f21a4da74d4195cc7b1?d=mm

    kongsong

    Jan 18, 2017 05:48

    I used ETHAN_VISUALVOCAL's way to deal with this issue and I want to thank him but it still is a temporal fix.

    Unity team, please fix this issue, I'm waiting for this several months now.

  3. 4c7a16bc574ede4d97e9add754915f2d?d=mm

    ilmario

    Jan 17, 2017 12:55

    Come on Unity, please fix this asap, or at least reply here if there is going to be an even bigger delay.

  4. 771aa1b263146a12616aa33e9c882232?d=mm

    dreamade

    Jan 14, 2017 21:12

    5.5.0f3 not fixed yet :(

  5. 5e4fed4a0e0b831137c89f283b48f702?d=mm

    JackmanGomel

    Jan 13, 2017 01:44

    In the latest patch of January 11, the problem remained. If you decide other ways to write. Thank you

  6. A6de77c150807dc1bc1b8053a4247f8a?d=mm

    andyvene

    Jan 11, 2017 18:06

    This kind of crash may happens if you have set a Application.targetFrameRate = 60 for iOS.
    Try to remove it and then it won't crash when coming back to app after lock button.
    Doesn't affect the home button.

  7. Cf03d5b175ceeba54977c7d7801ada7e?d=mm

    me_Stoffel

    Jan 09, 2017 09:12

    Any news on this? Could not find a workaround that did the trick so far and the bug is a huge problem for some apps.

  8. E727b02660bbcbac4978af67dba0967a?d=mm

    TNTdev

    Jan 04, 2017 07:26

    Ha ha.yes bro indeed.Next patch

  9. 1ae1699ae39695d58ab96673619f0af8?d=mm

    voporak5

    Jan 03, 2017 06:16

    This year? Let's hope they fix it in the next patch lol

  10. E727b02660bbcbac4978af67dba0967a?d=mm

    TNTdev

    Jan 02, 2017 05:14

    Lets hope this issue will fix in this year.

All about bugs

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