UMG widget button adds item to inventory

Using Set Array Element Like this:

Note, you don’t need to check the length of the array anymore, if you are doing things right it will always have five elements in it.

Check that the item clicked is not empty, using the Not Equals node, I put in NULL for the name of my empty item, you can use whatever you like so long as it is consistent. After an item is added to the player, the item taken from the array is set to a NULL item, you’ll probably want to add the thumbnail for the empty item in the Make S_Items here too.

You’ll also still need to set the thumbnail of the button when they are clicked.

Okay that’s working as planned, thanks for the help and advice Mosel3y :slight_smile: