Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2019.3.0a12
2019.3.0b1
2020.1.0a1
Issue ID
1182527
Regression
Yes
Screen.width and Screen.height change values when Game window is not active
How to reproduce:
1. Open attached project ("1182527-repro.zip")
2. Open Console window
3. Select Game window
4. Click Maximize/Restore Unity window two times
5. Select Scene window
6. Click Maximize/Restore Unity window two times
Expected result: Screen.width and Screen.height values are not changed
Actual result: Screen.width and Screen.height values changes to random numbers
Reproducible with: 2019.3.0b3, 2020.1.0a4
Not reproducible with: 2017.4.32f1, 2018.4.8f1 (Errors with C# version), 2019.2.5f1, 2019.3.0a11
- Every action that causes Screen.width and Screen.height to update can be used instead of steps 4 and 6
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0a8