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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

I Want to Be Able to Unpause Game with Same Button Used to Pause It. I Tried to Create a Blueprint, But It Doesn't Work.


I'm attempting to make it so that the same button to pause the game is the same one that's used to unpause it.

I have a blueprint here and I can already see the problem being that it's not actually indicating whether I press the button a second time, but, how do I do that then? What should this look like?

The game can still pause and the menu functions perfectly, I just can't figure out how to make it so that pressing it a second time exits the menu, while also resetting it so that I can pause it again.

I'm also a beginner at this, so, I don't know much of the terminology or functions yet.

Help would be appreciated.

Product Version: UE 4.20
more ▼

asked Oct 19 '18 at 09:24 AM in Blueprint Scripting

avatar image

15 2 3 6

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

1 answer: sort voted first

in the script you show the reference you are using is wrong. basically you are creating the widget then when you try to get rid of it you are creating another widget and destroying the new one, put simply you create 2 widgets and destroy one for a net of one. what you need to do is to have a reference to the first widget you create so that you can later destroy that one. to do this you may want to select the return value pin on the create widget node and promote to variable. another issue you may also be having is that you need to select your input event and make sure that it can execute when paused.

alt text

capture.png (216.5 kB)
more ▼

answered Oct 19 '18 at 01:38 PM

avatar image

10.1k 33 10 23

avatar image pchanliau Oct 19 '18 at 02:11 PM

That seems to MOSTLY accomplish what I want, as I can pause and unpause the game now, but, the pause menu itself isn't showing up.

Here is my blueprint.

Not sure what I missed (but I'm guessing it'll be obvious).

avatar image pchanliau Oct 19 '18 at 02:17 PM
unrealpause6.png (397.5 kB)
avatar image ThompsonN13 Oct 19 '18 at 03:29 PM

yea opps forgot to add that node but glad you got it working. also note that by using the is game paused node even if you use another means to close your menu or unpause the game this button will still work since the is game paused node gets the pause state built into the engine and not a bool you set yourself.

(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