Is there a way to show/hide a UI UMG element on player clicks.

I would like to show an intro image but also have the option to click to hide it.
I tried adding a HUD Message Device to my map but that shows the UI for a fixed amount of time with no option to click through (although there is User Option Function - Hide?).
I had a go at writing some verse derived from hud_message_device but I wasn’t sure how to detect the player input without an interactable button. I just want to clear it when they press ‘attack’ if possible.
Thanks.

I personally used the Creating an In-Game UI guide to do my own (quick, 1 button) temporary UI.

For the detection, I don’t think you can detect if a player is attacking but you can detect player movements using fort_character.GetTransform() for example.

NOTE : If you really want to detect if a player is attacking you could also try using damageable Triggers but I’m not sure that would be easy to do.