Need assistance with navigation wrap for gamepad.

Hi Everyone,

I apologise if there is a similar question in the forum already but I did have a look, and couldn’t find quite what I am looking for.

I am working on my inventory/equipment UI, and although I was able to get all of my logic working so far, I seem to have stumbled across something I can’t seem to overcome.

To break it down into smaller steps:

  1. Upon clicking the selected button, my widget takes a previously set reference to my character, accesses their inventory, and “grabs” all items of a certain type to create a list of items. I don’t know if it’s worth mentioning, but this is done by grabbing my inventory array, doing a foreach loop, breaking the result, and utilising an enum to separate the item types. Every item of a certain type feeds into this list.
  2. Once this has happened, this new widget is made visible, and the list is displayed showing how many items of that kind are in my player’s inventory.

So far so good, and this is where my probem lies…

  1. I can cycle through the items on that list using my gamepad, however I cannot seem to be able to limit the navigation.

Whereas other parts of my menu have seen the navigation limits of “stop”, “wrap”, and even “explicit”, I can’t seem to make any of this work in my list of variable size.

All my other widgets have had pre-defined buttons I could cycle through, and knowing who were the first and last ones on the list, I could also ensure my navigation doesn’t “escape” anywhere.

I see that there are further navigation options such as “Custom” and “CustomBoundary”, but I can’t seem to work out if these are what I need to use.

Anyone that can shed some light?