Search Issue Tracker
By Design
Votes
0
Found in
5.4.0p1
Issue ID
824691
Regression
No
Screen.currentResolution does not instantly update after Screen.SetResolution
Steps to reproduce:
1. Open attached "buggyScreen_Improved.zip"
2. Build & Run
3. Click on the left/right buttons
- Three logs are printed on every click
Expected: Screen.currentResolution == Expected resolution
Actual: Screen.currentResolution is not set until next frame
Reproduced: 5.2.5f1, 5.4.0p2, 5.5.0a6
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
lucassivolella
Feb 15, 2022 21:16
This is still happening to me on version 2020.3.3f1. I have done a similar test, displaying in text fields the resolution the user selects on a in game menu, alongside with the Screen.currentResolution and Screen.Width + Screen.Heigth. The Screen fields are always "one change" behind.