I’ve got a inventory pickup working and showing on screen. At the moment I am trying to workout how to interact with all buttons but I can’t figure out how to increase array to distinguish between them. At this stage it just finds the last button.
As you can see here, I can select a button from the Inventory ItemId and set text colour depending on which button is selected. it works as I have to move the thumbstick X amount depending on how many things are in the inventory. but because the array in the Inventory button widget blueprint only has 1 in the array I can only interact with the last item put into the inventory.
Is there a way to increase the text array. So I get the text variable and get the Inventory ItemId variable and add to array and set the Textarray variable so I can interact with all buttons in the textarray variable.
Thanks for that help, I can resize the textarray. But still only able to interact with the last button in the array. So if the inventory array has 4 items I can move the gamepad stick down 3 times and the forth item in the array highlights but the other don’t.
im very bad understanding others bp so this is what i would do. make an array of widgets in my Inventory widget. inside the widget an inventoryID. whenever a widget is created, add to the container widget and to the array. you can have the reference of the container by storing it the first time on lets say… Hud class (then access from player controller). work with it by highlighting it from the container widget.