I had my friend @Repotted test the Xbox compatibility of my game with his controller. Most of the UI works as expected except for the Shop and Inventory.
I’ll only be showing the shop as it is designed almost the exact same way as the inventory.
I’ve seen a pattern that the UI navigation only breaks in UI that is only viewable to some extent in ClipsDescendants where the X or Y value has to be less than 0 or greater than 1. The X pos for the first section where the selection works is 0, but the other sections are at -1 and -2.
So you mean the controller can’t select the items contained in the tabs?
Most likely you haven’t set the NextSelectionDown, NextSelectionRight, etc. properties of the objects properly.
Additionally, every time you switch tabs you’ll need to set the NextSelectionDown properties of the tab buttons to the items in the currently selected tab.
Personally, I think having a bind like RB and LB to switch tabs would be better than having buttons. Like I said above, you’d need to stuff around with all the NextSelection stuff - it’d be better if you could just make some binds to the controller buttons to do things, and only have selection stuff going on within the item tabs themselves.
A really good example of this in my opinion is Grim Dawn’s controller UI:
What exactly does NextSelection do? I only need the UI on the Left and Right to work when needed. I don’t have a controller to directly test this, so I need a better way to picture it and use it effectively.
The NextSelection properties on an object dictate what gets selected from the currently selected object. For example, if I had a button selected, and tried to select something to the right with the controller, the object in the NextSelectionRight property would be selected.
I was able to recreate the bug issue I was having. I tried to add add useful comments and make my UI code clean to understand. Send a PM or respond here if you have any questions.
Sorry for bumping such an old thread, but I’m still encountering this issue. I have to disable ClipsDescendants on my UI for NextSelection__ to work properly. Is this ever going to be fixed