Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2018.4
2019.4.6f1
2020.1
Issue ID
1268010
Regression
No
[Windows] Turning off VSync in Application.focusChanged causes another callback with focus = true
How to reproduce:
1. Open the user's attached "repro-focus-error.zip" project
2. Open the "SampleScene" Scene
3. Go to File -> Build And Run
4. When the application opens, make sure "Toggle VSync" is checked
5. Click outside the application to make it out of focus
Expected result: "Focused" and "VSync" text disappears and framerate text changes to 20
Actual result: "Focused" and "VSync" text doesn't disappear and framerate text doesn't change to 20 instead stays equal to the monitor's Hz
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.0a20
Not reproducible with: 2020.1.0a21, 2020.1.3f1, 2020.2.0a20
Notes:
- The issue is not reproducible in the Unity Editor
- The issue is not reproducible on Mac OS
- In 2018.4.26f1, 2020.1.0a1 and above on the reproducible versions instead of the monitor's Hz in the Actual result, a random number is displayed, usually ~5000
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0a21