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