What’s up with those booleans? You seem to have two both for being in the menu, rather than one for being in menu and one for being in an animation.
I also recommend collapsing an inventory, not hiding it.
Here’s an example of how i set up my item hotkey slots. I dont actually set visibility here, but it gives you an idea of how i control the flow:
Also, i recommend having the functionality of the action inside of UMG, not your character blueprint. You should create an event in the UMG graph and then simply call that event from your character blueprint.
When i said bind the visibility, i meant using actual bind nodes like this:
Not exactly the same of course since different games have different UI setups, but it should give you some ideas.
