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
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
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.