Search Issue Tracker
Fixed in 2.2.4 - preview
Votes
0
Found in [Package]
2.2.2 - preview
Issue ID
1253362
Regression
No
Screen.SafeArea returns different values with the same device when maximizing and unmaximizing the Device Simulator window
How to reproduce:
1. Open the attached project (case-1253362.zip)
2. Open the Device Simulator window (Window -> General -> Device Simulator)
3. Enter the Play Mode to start printing Screen.safeArea results in the Console window
4. Select Apple iPhone XS device
5. Maximize the Device Simulator window
6. Unmaximize the Device Simulator window
Expected result: the same Screen.safeArea value gets printed to the Console as it was before maximizing the window
Actual result: a different Screen.safeArea value gets printed (height gets set to its maximum resolution while width does not change)
Reproducible with: 1.0.0-prevew (2019.4.0f1), 2.2.2-preview (2019.4.0f1, 2020.1.0b11, 2020.2.0a14)
Could not test with: 2018.4.23f1 (package compatible with 2019.3 and above)
Notes:
The issue doesn't occur with all devices. Issue found in: Apple iPhone XS, Xiaomi Redmi Note 7, Motorola Moto G7 Power, OnePlus 6T, Apple iPad Pro 11
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
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
hzn403
Mar 15, 2023 15:16
This problem is reproduced in 3.0.3-preview and 3.1.0-preview.