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
- “Asset X has no meta file, but it's in an immutable folder. The asset will be ignored.” errors are thrown when importing package with files not listed in package.json's "files" property
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
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.