How do I close a menu?

So I have an event that bring up a menu(UI widget).

That menu has a button. That button should close the menu. HOW??

I cannot for the life of me get that button to make the menu go away! How do I close the menu from the menu?

you can either use the node “remove from parent” with the target widget, or use “set visibility” and change it to hidden or collapsed.

remove from parent is akin to destroy actor. the next time you show the widget, its on construct event would be fired because it is being constructed new again.

Change visibility is as the name implies, just hiding or showing the widget. Hover over the dropdown options for tooltips that explain difference between hidden and collapsed.

1 Like