Unreal Engine 5.3 - Widget Buttons

I’m having trouble getting a test widget to cooperate. After it pops up, there is a button that is supposed to close the widget by removing from parent. But, the button does absolutely nothing, even though it is enabled. It doesn’t react if you hover over it, either. So, is there anything else I need to do, in order to get a button on a widget to function when clicked on?

Show us some screenshot of your code :innocent:

Check if you have properly remove the exact instance of that widget class.
And check if you any overlay widget(including transparent) over your widget.

Add a print string to your onclicked event.

Here’s a screenshot of the code behind the button. The button itself is enabled, but it doesn’t even just close the widget when the button is clicked.

Try to add only a print string after your OnClicked event.

Make sure to check the visibility setting of your widget
image

And there no other widget overlay on your button.

1 Like

It looks like everything related to the widget - canvas, buttons and text - needed to be set to Visible and neither of the “Not Hit-Testable” settings. Thanks for the reminder!

1 Like