Widget Buttons Not working, Help!

I have a simple pause menu that includes one button that says “Resume.” Its not functional when I click it. I’ve tried many functions, but none of them work. Please help…
I can do it from within my character, but it doesn’t work in the widget.

1 Like

Um, also, I tried just using a button- it doesn’t even respond to a click.

What are you trying to do on Click?

It would help a ton if you would show a picture of your code, so we can see how you have build this. Now I can only guess the following which you should try:

  1. When game is paused, only Widgets can work without being paused along with the actual gameplay. If you say that your UI button is not working after pausing the game, this might be due to a wrong Zorder within your Widget hierarchy. Make sure your button’s Zorder is on top of anything else.

  2. There might be something wrong with your code, now I can not know that because you did not post a picture. So please do to help us help you.

just unpause so far. It doesn’t play the animation or anything.

I tried making Zorder over all else, it didn’t work… (The button is pure black so I can see it, later its gonna be invisible like all the other buttons. that doesn’t matter, does it?)

Remove from parent has to be the last step. It instantly stops the flow of the actor or widget when you cast this . :wink:

click button → unpause → remove from parent

You are not using Flipflop node. You can not use On pressed and on clicked on a same button to execute a same feature. Delete “On pressed” node, add Flipflop node in front of “On clicked” and attach A and B ports to teir rightful places depending how you want the code to execute.

The first time the player presses the button, A will fire. Second time, B will fire, and thus restart and repeat.
However, you have “Set game paused” both boxes are unchecked, thus killing the purpouse of using two of the same node. Check one of these two boxes to make one resume the game and one pause it. Then you can use “Remove from parent,” since it destroys the widget itself.

Doesn’t work…

Not working.

The buttons don’t respond- at all

IT IS A BUG, I REPEAT, IT IS A BUG.

I opened and quickly made a pause menu in 4.13, and it worked perfectly fine. I’m using the SAME EXACT SCRIPT, so, unless something changed with buttons or unpausing, its a nasty bug. The button also plays the animation for a click, unlike 4.14. Epic, please fix this.

BUMP
Found this issue in 4.19.2
Using 4 buttons in a vertical box for a menu, 2 of the 4 buttons were not responding. I found that if i played in the native editor window it was operational but not in the New Editor window mode. Perhaps a resolution scaling issue?

1 Like

Anyone reading this in the future, MAKE SURE that your canvas panel is set to ENABLED. If its set to disabled, your buttons will be faded, and that wont do anything!