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
Comments (3)
-
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
- [iOS] "UnityBatchPlayerLoop()" causes a freeze in the iOS application when it is put to the background and brought back to the foreground
- "Perform Selected" of Shortcut Manager window does not perform the shortcut in some cases
- Crash on mono_get_hazardous_pointer when running Play Mode tests in a specific project
- [iOS] ‘확인’(Done) and '취소'(Cancel) text is displayed as '...' in the on-screen keyboard when the System preferred language is set to Korean
- [sw-unity-6-1] Shadergraph panning area size is constant regardless of the size or the zoom level
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