Search Issue Tracker
Not Reproducible
Votes
0
Found in
2018.4
2019.4.11f1
2021.1
Issue ID
1293614
Regression
No
Player resolution set to diplay resolution when calling Screen.SetResolution with values larger than current display resolution
How to reproduce:
1. Open the attached project (ScreenSize.zip)
2. Make sure the "Sample Scene" is open and press Ctrl+B to build and run the project
3. In the Player press "G" to enter fullscreen window mode and set the resolution to 4000x3000
4. Observe the current resolution
Expected result: The current resolution is 4000x3000
Actual result: The current resolution is your display's resolution
Reproducible with: 2018.4.29f1, 2019.4.15f1, 2020.1.14f1, 2020.2.0b13, 2021.1.0a6
Not reproducible with:
Notes:
1. Reproducible on Ubuntu 18.04 and Windows 10
2. Same behavior reproducible with exclusive fullscreen and windowed modes
3. If after setting the 4000x3000 resolution in windowed mode, it is set again, then the Player's resolution correctly gets set to 4000x3000
a. Works correctly the first time on 2018.4.29f1 and 2021.1.0a6
b. On Windows 10 the resolution never gets set to 4000x3000
4. The Screen.width and Screen.height properties don't update on the same frame as the SetResolution call
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
we are not sure what the user is trying to accomplish by setting a resolution higher than what the monitor can support. The current implementation clamps the display width to the maximum that the screen can support if the provided resolution is greater than that. So, we are closing as Wont-fix.