Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2018.4.X, 2019.3.X
Votes
0
Found in
2018.4
2019.2.8f1
2020.1
Issue ID
1190735
Regression
No
[iOS 13] Screen.SafeArea values are incorrect after app pause and orientation change
How to reproduce:
1. Build the attached project for iOS
2. Build & Run the app to device via Xcode
3. Rotate the screen
4. Lock the device
5. Unlock the device
6. Rotate the screen back
Actual result: Screen.SafeArea values are incorrect after unlocking and rotating the phone. (screenshots "before" and "after" attached)
Expected result: Screen.SafeArea values are the same as before.
Devices reproducible with:
- iPhone X (iOS 13.0)
Devices not reproducible with:
- iPhone X (iOS 11.3.1)
- iPhone 7 (iOS 12.3.1)
- iPhone X (iOS 12.4)
- iPad Pro (iOS 13.0)
Reproducible with: 2017.4.33f1, 2018.4.11f1, 2019.2.9f1, 2019.3.0b7, 2020.1.0a9.
-----------------
Fixed in 2020.1.0a14.
Comments (2)
-
DStephensJr
Jun 02, 2021 16:07
I don't know if this is still an issue, but I have experienced a problem in this area after following the Unite 2020 presentation on the setup of safe areas.
What I discovered is that the Canvas incorrectly reports the size on the initial pass when the orientation changes. The example script does not check for a canvas size change to recalculate the layout, so it remains wrong after the first pass.
I store and check the canvas size as well as the orientation. If it changes (and it will once the height and width are finally corrected) i recalculate the safe area. This seems to work well for me (so far) and has no real risk of breaking changes later.
:-D
-
Fizzer
Apr 13, 2020 09:34
Is there any workaround? I'm in 2018.4 so it's still broken for me. Also, why can't I vote for this? I want it fixed in 2018.4, but I have no way to voice my opinion.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note (fix version 2019.3):
Fixed in 2019.3.10f1
Resolution Note (fix version 2018.4):
Fixed in 2018.4.21f1