How to Automatically Close Previous UI Button When Clicking a New One?

Hi everyone,

I’m working on a user interface in Unreal Engine and currently facing an issue. I have multiple UI buttons, and when I click one button, I have to manually click again to close the previous button. I’m looking for a way to automatically close the previously opened button when a new one is clicked.

Here’s a brief overview of my setup:

  • Each button opens a new UI element when clicked.
  • The previous UI element remains open until I click it again to close it.

How can I set up my UI so that clicking a new button automatically closes the previously opened UI element? Any guidance, tutorials, or examples would be greatly appreciated!

Thanks in advance!