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"

Escape to open menu unfocuses immediately

I'm trying to have my game's pause menu open and close with the Escape key. The former is easy, but the latter is somewhat annoying to implement. Apparently, the same key event that opens the menu immediately also causes it to lose focus, so pressing Escape again won't close it unless you click one of the buttons first. This doesn't happen with another menu that's opened by the E key--that one opens and closes with keypresses just fine. It must be the default functionality of Escape in particular. Is there any way to disable or work around this? I tried simply calling "set keyboard focus" every tick, but that didn't help.

Product Version: UE 4.15
Tags:
more ▼

asked Apr 20 '17 at 02:00 AM in Blueprint Scripting

avatar image

BaronVonSatchel
8 3 6 8

avatar image Adnoh Apr 20 '17 at 11:44 AM

Check the Root of your umg hirarchy, Properties, interaction->isfocusable? Maybe this helps if it is checked. When showing your pause menue setting the user input to UI-Only does help you eventually, too

avatar image BaronVonSatchel Apr 20 '17 at 09:04 PM

I have it on UI Only but I'll check and see about isfocusable.

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

1 answer: sort voted first

Apparently Is Focusable was unchecked in the blueprint options while it was checked in the other menu. It was nothing to do with the Escape key in particular. That said I've never messed with that option so I don't know why it's different. Thanks to Adnoh's comment for pointing me to it.

more ▼

answered Apr 21 '17 at 06:12 PM

avatar image

BaronVonSatchel
8 3 6 8

(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