Inventory Buttons UMG

I’ve set up an inventory like this, as well as a crafting UI, so that it works well with a controller.

I keep an integer hanging around that stores the “currently focused” (FocusedCraftingItemIndex) value. On L-Stick up or down, I check if that value is within the range of children within the scroll box (FocusedCraftingItemIndex > 0, FocusedCraftingItemIndex < ChildCountOfScrollBox), and either increment or decrement the value based on if it was stick up or down.

Every input, I go through the buttons in the box and manually set all ‘unfocused’, then on complete of that loop set the child at FocusedCraftingItemIndex to be ‘focused’. I have a function within each button to set ‘focused’ or ‘unfocused’, in which I manually swap around the appearance.

An additional bit of complexity is setting the scroll offset, which I’m attaching an image of.