Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X
Votes
7
Found in
2019.4
2019.4.29f1
2020.3
2021.2
2022.1
Issue ID
1356217
Regression
No
[iOS] Screen.safeArea returns incorrect height value when constraining rotation to landscape
How to reproduce:
1. Open the attached Unity project ("SafeAreaTest.zip")
2. Build And Run on an iOS device
3. When the app finished loading, rotate the device to landscape and back to portrait
4. Tap the "Force Landscape" button
5. Observe the safe area and screen size values
Expected result: Safe area height matches screen size height
Actual result: Safe area height is 40 pixels smaller than screen size height
Reproducible with: 2019.4.32f, 2020.3.23f1, 2021.2.3f1, 2022.1.0a16
Reproducible on:
iPad 6th generation (iOS 14.4.2)
Not reproducible on:
iPhone 8 Plus (iOS 14.4.2)
iPad Air 2 (iOS 11.0.3)
iPhone 13 mini (iOS 15)
Note:
- It may take a few tries to reproduce the issue
-
abcjjy
Apr 25, 2022 23:59
This issue is still there after upgrading to 2019.4.37
-
stopiccot_tds
Mar 07, 2022 13:02
Please backport to LTS
-
Bombastrelopas
Sep 17, 2021 10:29
This issue is not reproducible in 2019.2.19 of Unity from my tests so it broke somewhere in between 2019.2.19 and 2019.4. Also the 40 pixels height most likely has to do with the status bar(even if your app does not use it for some reason Unity counts it).
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
- [Android] FPS does not match the targeted FPS when it is set with Application.targetFrameRate
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b15
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.17f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.31f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.37f1