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"

UMG widget button needs arrow input before focus

So I'm trying to make a menu system that uses the keyboard or gamepad. For the most part, it works, you can highlight a button and select it. My issue is, when I first open the menu, my widget doesn't get keyboard focus until I press the down arrow on the keyboard. This results in you skipping the first button on the menu, but pressing the up arrow afterwards allows you to highlight and select it. This is when you first open the menu: alt text

This is after you press the down arrow: alt text and then when you press up:alt text I have tried using set InputMode but that just yields the same results. I can't work out if this is a bug or if this is just down to me not using the functions correctly, the blue print I'm using for my menu widget is below. Any help would be much appriciatedalt text

Product Version: UE 4.19
more ▼

asked Apr 30 '18 at 05:29 PM in Blueprint Scripting

avatar image

15 2 2 6

avatar image Narg Jul 31 '18 at 12:31 AM

I have this exact same issue, but I can't seem to solve it.

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

2 answers: sort voted first

Edit: completely misread, my apologies, thought arrow was 'mouse arrow'. However, I still think this may yield some assistance towards resolution.

Ah, yes, I had fun trying to figure this one out myself with my inventory system. Took me a while too, but this is what ultimately worked, regardless of how bizarre it may seem haha.

Now I've included everything that I use to display and hide my inventory system, so most of this may be unrelated, however, I included it just in case. The main one I think you will need is the first image, the Widget BP Nodes.

Hopefully this helps in some way!

alt text alt text alt text alt text

more ▼

answered Apr 30 '18 at 07:43 PM

avatar image

81 4 5

avatar image Icepaw May 01 '18 at 04:08 PM

Thanks for your input but unfortunately I've been unable to yield any results :( I've tried messing around with the is focusable bool but it seems sort of redundant since I already have is focusable ticked in the details panel.

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

Try calling SetUserFocus and sending the GetPlayerController to that node, after setting keyboard focus in your Construct event.

more ▼

answered Apr 30 '18 at 07:09 PM

avatar image

897 12 14 25

avatar image Icepaw Apr 30 '18 at 07:21 PM

No good, just gave me the same result.

avatar image goncasmage Apr 30 '18 at 07:40 PM

Try going to Play -> Advanced Settings -> and make sure the first option (Game Gets Mouse Control) is set to true.

avatar image Icepaw Apr 30 '18 at 07:49 PM

It's set to true now and coupled with your other suggestion but still no change :/

(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