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
- [Android] App crashes when Volume Depth of Field is set to "Bokeh" while using Vulkan Graphics API
- Baked Off Mesh Links outside the modified area are deleted when using NavMeshSurface.UpdateNavMesh
- Search "Label" window Format's field dropdown has an empty white space when the window is moved from it's original position
- UI Builder windows text rendering breaks when using Rich text combined with an underlined emoji
- [Linux] Crash on mono_runtime_invoke when executing a specific script
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.