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"

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. 

How to get axis value when widget is focused?

Whenever I set input to focus a widget, axis bindings delegates and query always returns 0, and even after returning focus to the game it still returns 0 until another input on that axis is pressed or released.

A very similar case was reported in this question. The first bug he reposts that is.

In my case, it is a platformer with a pause button to spawn the widget, if you are pressing forward, pause/unpause while still pressing forward, when the game unpauses, the axis delegate always returns 0. If you want to continue going forward you have to press forward after unpausing, otherwise it won't register.

The other question said it found a workaround which is to check if the key was pressed down, he didn't want to take this approach and either do I.

How can I get the axis value not to get consumed when focusing widget?

Product Version: UE 4.21
Tags:
more ▼

asked Jan 21 '19 at 11:34 PM in Using UE4

avatar image

OksShammy
1 1

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

1 answer: sort voted first

Have you tried using the Set Input Mode Game Only node? Try executing that in your player controller's BeginPlay. Not sure it will work, but some quick experimentation should answer whether this node makes a difference. (It's supposed to prevent the UI from consuming player input, so, fingers crossed.)

more ▼

answered Jan 22 '19 at 07:16 PM

avatar image

the_batch
1.2k 4 5 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