How do I "select" specific items within my hotbar?

Hello!

Sorry in advance as this is a very specific issue - I’ve scoured the internet on how to do this but I have had no luck thus far so I am now asking here. Basically, I am trying to make a hotbar to go with my inventory system. Right now, you can drag items from the inventory into the hotbar, but there is currently no way to “select” the item and automatically equip it in the player’s hand (I’m trying to make a hotbar similar to the hotbar in Minecraft).

I have already made the hotbar slots “selectable”, so when the player scrolls through the hotbar, an integer variable “Hotbar Select Int” advances forwards or goes backwards through the hotbar whilst highlighting any selected hotbar slots red, like this:

hotbar demonstration

However, while it looks like the notebook item is selected, it isn’t actually as the hotbar slot does not actually know what is in it.

I need the hotbar slot to know what is inside it so that I can make the player automatically equip the notebook item when they cycle through the hotbar using their scroll wheel and actually select the notebook item.

I’m sure the solution for this issue is very obvious, but unfortunately I am still a beginner with Unreal and with programming in general, so I am completely clueless as to how I can solve this problem at the moment. If anyone has any pointers as to what I could do, it would be great to know =) Thank you!!!