Search Issue Tracker
Won't Fix
Won't Fix in 2023.3.X
Votes
0
Found in
2021.3.16f1
2022.2.2f1
2023.1.0a25
2023.2.0a1
2023.3.0a3
Issue ID
UUM-22541
Regression
No
"UnityEngine.Device.Screen.resolutions" returns the resolution that was once set with "Screen.SetResolution"
How to reproduce:
1. Open the user’s attached “Device Simulator Test.zip“ project
2. In the Device Simulator window select any device
3. See that resolution printed in the Console window is ~1000x800 (depending on the device)
4. Toggle the “Set Resolution“ box in the Hierarchy > Main Camera > New Behaviour Script
5. See that resolution printed in the Console window is 8192x4048
6. Toggle the “Set Resolution“ box in the Hierarchy > Main Camera > New Behaviour Script again
7. Observe the Console window
Expected result: The resolution printed in the console window is ~1000x800 (depending on the device)
Actual result: The resolution printed in the Console window is 8192x4048
Reproducible with: built-in (2021.3.16f1, 2022.2.2f1, 2023.1.0a25)
Couldn’t test with: 3.0.3-preview (2020.3.44f1) (Scripting errors after downgrade)
Note: restarting the editor doesn't fix the issue
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Changing the device will reset the value, as will restarting the editor. Make sure in test projects that the boolean that checks whether the call SetResolution call is done is disabled before restarting the editor or changing devices, or the call will be made again.
Resolution Note (2023.3.X):
Changing the device will reset the value, as will restarting the editor. Make sure in test projects that the boolean that checks whether the call SetResolution call is done is disabled before restarting the editor or changing devices, or the call will be made again.