Search Issue Tracker

By Design

Votes

0

Found in

2021.3.22f1

2022.2.13f1

2023.1.0b10

2023.2.0a8

Issue ID

UUM-31484

Regression

No

UI Elements are not getting focused when navigating through using arrow keys if they’re placed in a specific position

--

-

How to reproduce:
1. Open the user’s attached “My project.zip” project
2. Enter Play Mode
3. Focus on a small grey button located closer to the “Settings” text
4. Press the down arrow key and observe the view

Expected result: “Button” button located below is focused
Actual result: Small button still focused

Reproducible with: 2021.3.22f1, 2022.2.13f1, 2023.1.0b10, 2023.2.0a8
Could not test with: 2020.3.46f1 (Errors after project downgrade)

Reproduced on: macOS 13.2.1 (Intel)

Notes:
Not reproducible if a button from the 3rd step is bigger or moved to the right
Not reproducible if disabling “BUG” GameObject and enabling “WORKS” GameObject. “WORKS” GameObject has a different UI Document in which a button from the 3rd step is located more to the right side
Not reproducible when using a left arrow in the 4th step and focusing the button to the left
Reproducible with a keyboard and an Xbox controller
Reproducible in the Editor and in Standalone Build Player (macOS)

  1. Resolution Note:

    Navigation with arrows are designed this way. Depending on your UI design, if you had other exactly aligned elements below, you might want to navigate to them directly and skip the one in the middle that's not aligned.

    Also, you can work around this behavior by registering a callback to NavigationMoveEvent on the top element where you manually call Focus() on the element you want to navigate to.

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.