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

Package: UI Toolkit

-

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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.