Search Issue Tracker
Fixed in 1.0.0-preview.15
Votes
0
Found in [Package]
1.0.0-preview.14
Issue ID
1315393
Regression
No
[UI Toolkit] Submit button on a gamepad still works when the menu is disabled
How to reproduce:
1. Open the user's attached project "UIToolkit.zip"
2. In the Project tab, open Assets/SampleScene.unity
3. Connect a controller to the computer
4. Enter Play Mode
5. Move between the buttons in the Game view using D-pad until the message "5 SECONDS" is printed out in the Console and the menu is disabled
6. Press the submit button (A on Xbox One controller)
Expected results: the disabled menu doesn't change
Actual results: the button that was last chosen (marked green) turns red even when the menu is disabled
Reproducible with: 2020.2.6f1, 2021.1.0b9 (UI Toolkit 1.0.0-preview.11, 1.0.0-preview.14)
Could not test with:
-2018.4.32f1, 2019.4.21f1 as UI Toolkit is not available, 2021.2.0a7 (UI Toolkit 1.0.0-preview.11, 1.0.0-preview.14) due to errors
-UI Toolkit 1.0.0-preview.9 and earlier (2020.2.6f1, 2021.1.0b9) due to errors
Notes:
- Tested with an Xbox One controller
- The issue is reproducible on Windows and macOS
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
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
Resolution Note (fix version 1.0.0-preview.15):
Fixed in UI Toolkit 1.0.0-preview.15, available in 2020.3 stream of Unity and newer