x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.14
Tags:
more ▼

asked Nov 27 '16 at 06:31 PM in Using UE4

avatar image

GameCr3atrz
39 5 7 16

avatar image GameCr3atrz Nov 27 '16 at 07:14 PM

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

avatar image Holybreath Nov 28 '16 at 10:10 AM

What are you trying to do on Click?

avatar image GameCr3atrz Nov 28 '16 at 02:16 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

5 answers: sort voted first

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.

more ▼

answered Nov 28 '16 at 04:47 PM

avatar image

GameCr3atrz
39 5 7 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Nov 28 '16 at 10:23 AM

avatar image

Sundyko
71 8 11 11

avatar image GameCr3atrz Nov 28 '16 at 03:08 PM

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?) alt text

alt text

menu1.png (59.9 kB)
menu2.png (139.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

click button --> unpause --> remove from parent

more ▼

answered Nov 28 '16 at 04:15 PM

avatar image

Erytriel
324 14 3 10

avatar image GameCr3atrz Nov 28 '16 at 04:28 PM

Not working.

avatar image GameCr3atrz Nov 28 '16 at 04:40 PM

The buttons don't respond- at all

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Nov 28 '16 at 04:09 PM

avatar image

Sundyko
71 8 11 11

avatar image GameCr3atrz Nov 28 '16 at 04:28 PM

Doesn't work...

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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?

more ▼

answered Jun 04 '18 at 02:42 AM

avatar image

BJHemmingway
3 1 5 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question