Info Screen for Inventory won't go away

For some reason whenever I open up the Inventory in this game I’m working on and then open up the information for an item but don’t close it before pressing the key that closes the Incventory it just gets stuck on the screen and won’t go away.




Here’s the code that makes the information UI close whenever you press the “Use” or “Back” buttons

The Hide Function is what causes the Item information to get off the screen whenever someone presses “Use” or “Back”
The Widget for the information menu is called “Use Drop HUD”.

Please let me know if anyone can fix this cause I have absolutely no idea

Can we see the BP that “pressing the key that closes the Inventory” it would need to call hide or remove from parent when pressed

Thank you for sharing. Very informative.
Must Read:https://thinktrain.mn.co/posts/20170593?utm_source=manual

When clicked on the back button remove information widget using ‘remove from parent’ node and then create inventory widget


Hey, sorry for taking so long. Here’s the code for the buttons for the Inventory that open and close it, as well as pick up items as well as just generally allow the widget to be created.
These are all in the Player Script btw

The “InputAction Inventory” is what opens and closes the Inventory widget

No worries, The Flops B pin removes the inventory widget the Use Drop HUD WU is still attached to viewport and is not parented to inventory widget so you have to remove it on the B bin or call your event Hide on the B pin

I just tried that. It didn’t work.

The problem is that after the Use Drop HUD WU is opened and you close the Inventory, the Use Drop HUD WU becomes a separate widget.

The Flip Flop was originally put there when the Widget was small and the player could press the item button with the mouse while it was visible

What I’m trying to do is close everything on the screen up with the Inventory button which is the Keyboards “I” Key

I’ve also tried using remove all widgets and it does work, so it does register as a widget even after it becomes its own entity.