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"

Close pause menu with a hotkey

Hi!

I made a pause menu for my game and it is working perfectly fine except one thing - I can't close it with a hotkey. I was searching on the forum and found the topic with the same problem without any answers.

Here's my graph(high res image link):

Pause menu blueprint

I found that the hotkey(escape) I assigned is working on closing the menu only if 'Set input Game Mode and UI' is used and the game is unpaused.

Is there some way to fix this?

Product Version: UE 4.10
Tags:
more ▼

asked Sep 03 '16 at 05:21 PM in Blueprint Scripting

avatar image

Inviter42
15 1 3 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first
  • Keep Set Input Game Mode and UI on. You really do not want to use Set Input Mode UI Only too much. It's not really needed.

  • Next, on "InputActionMenu" key, click on it, and on the details tab, check on Execute when Paused

  • That should resolve your issue. However, your graph is a bit messy and convoluted. You should be able to just use a FlipFlop node for this for the Toggle of the Menu on key press.

  • Good luck!

more ▼

answered Sep 03 '16 at 05:46 PM

avatar image

VictorBurgos
2.4k 60 26 111

avatar image Inviter42 Sep 03 '16 at 06:05 PM

Thanks! That worked out!

I was using FlipFlop at the first place, but I found that it is not working properly with Resume button in the menu. If I will use the button to close the menu FlipFlop won't be able to know about it and will stay in the same state.

The only thing left - when I'm pressing on the blank space in the menu my cursor is disappearing for a second. Is there a way to fix it? I assume that it is because he's changing focus for a second.

avatar image ChrisBradwell Jun 09 '17 at 07:37 PM

Hey how did you get around the flip flip issue with hotkey and resume button?

avatar image Inviter42 Sep 03 '16 at 06:14 PM

Ah, never mind. I figured out this by myself. Just needed to uncheck 'Hide cursor during capture' in the 'Set Input Game Mode and UI' node.

avatar image VictorBurgos Sep 03 '16 at 06:24 PM

Well, you should be using Set Mouse Cursor (on,off) that will make it easier on you for the logic.

  • Set Game Paused True

  • Show Mouse Cursor True

  • Set Input Mode to Game and UI

  • OR

  • Set Game Paused False

  • Show Mouse Cursor False

  • Set Input Mode Game Only

avatar image Inviter42 Sep 03 '16 at 06:27 PM

Yeah, already did it. Thanks a lot, anyway!

(comments are locked)
10|2000 characters needed characters left
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