Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.11.0
Issue ID
ISXB-1079
Regression
No
Button state fluctuation when switching focus between two Game views while in Play Mode
Reproduction steps:
1. Open the attached "repro_IN-84451" project
2. Open the "Assets/Scenes/ControlScene.unity" Scene
3. Make sure you have two Game views and both of them are side by side
4. Select "Display 1" on the left Game view and "Display 2" on the right game view
5. Make sure that both Game views are focused by selecting "Play Focused" on both windows
6. Enter the Play Mode
7. Press the 'b' button and change the focus between the Game views
8. Observe the output on the right side of the "Display 1" Game view
Expected result: The output shows only "b:1", indicating that the 'b' button stays enabled without being disabled after each new Game view focus
Actual result: The output shows "b:0" first and "b:1" after, indicating that the 'b' button is being disabled before being enabled after each new Game view focus
Reproducible with: 1.3.0 (2023.1.0a1), 1.10.0 (2021.3.44f1, 2022.3.48f1, 6000.0.21f1)
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Note: Reproducible in Player while switching focus between two different monitors
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
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
- Group Node name text is way smaller in the renaming state than the actual display size
Resolution Note:
This is just the standard window focus change behaviour - when focus changes between windows the keyboard state is reset.
However you can change this behaviour with the setting:
Project Settings / Input System Package / Settings / Background Behavior
If you set this to "Ignore Focus" then there is no keyboard state reset when switching focus between windows - you will not see these "extra" key up/down events.