UI Toolkit Navigation Wizard: Controller support within seconds!

Links: Asset | Manual

You have made your game and now you want to add controller support and you realize: Oh No, the selection gets stuck or selects the wrong stuff (elements in the back, out of screen, ..). → Fear not for the UI Toolkit Navigation Wizard has arrived to solve all your UI navigation problems with the flick of a mouse.

Unity`s default UITK navigation fails as soon as UI elements are not overlapping horizontally or vertically (in UI Toolkit).

This asset fixes that and adds a lot of other useful features like occlusion and null selection resolution. I used this concept in my uGUI UIs a ton and always missed it in UITK. Now here is the port.

If you think that this can’t be true for in uUGUI that UI worked just fine, then, yes, it worked in uGUI but does not in UI Toolkit since that only scans for a strict straight box area up/down/left/right. If a button is only slightly off it won’t find it. That’s not a configuration issue. It is implemented like that, see: UnityCsReference/Modules/UIElements/Core/GameObjects/NavigateFocusRing.cs at master · Unity-Technologies/UnityCsReference · GitHub
I have complained about this to Unity years ago (when UI Toolkit was new) yet, still, no change. Thus I had to implement my own solution (also did the same for uGUI in the past since there the auto-navigation is better but still not ideal).

Hope you like it.
If you have any questions feel free to ask here or write to office[at]kamgam.com :slight_smile:

I wish this had released about a month ago. Probably would have saved me a couple weeks writing my own UI controls from scratch. :melting_face:

I’ll definitely have to check this out sometime though, thanks for posting!

1 Like