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"

How to get keyboard focus to UMG?

I created a 3D UMG Widget as a menu with buttons. I added it as a component to My Character. I want it to get keyboard focus on Begin Play but I can't. Whatever I do, until I touch the component with the mouse, the keyboard focus does not get there. I tried so many things. Thanks for helping. Gary

Product Version: Not Selected
more ▼

asked Feb 19 '15 at 09:44 AM in Blueprint Scripting

avatar image

31 3 5 5

avatar image Erasio Feb 19 '15 at 04:29 PM

When you add it to the viewport there is a node called "Set Keyboard Focus" or very similar... I don't have the exact name memorized right now. Anyway by searching focus or keyboard while pulling out the widget reference it will surely come up.

That should work like you want it to.


avatar image kshepitzki Feb 23 '15 at 07:05 AM

Erasio Thanks for the answer but I still don't get it. I created a 3D Widget according to this tutorial: https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/Create3DWidgets/index.html And according to the tutorial added the widget as a component to my world. So I am not calling "Add to Viewport" on the component because it is already statically part of the level. And here is the simple graph I am using. It does not get the focus to the buttons of the UMG menu until I click the mouse on it. Thanks Gary alt text

3.jpg (131.4 kB)
avatar image Erasio Feb 23 '15 at 10:33 AM

Well then just do it right after your "Set Input Mode" node.

By the way the exact name is "Set Keyboard Focus" as I wrote early. I was not mistaken as I assumed.

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

1 answer: sort voted first

3D UMG widgets do not accept keyboard input. Adding them to the viewport would turn them into regular widgets and if you remove them from the viewport the ^d one would use functionality. You need to create your own solution for passing keystrokes from your character to the 3d widget Thankfully, you can do it in blueprints.

more ▼

answered Feb 23 '15 at 10:30 PM

avatar image

2k 62 24 110

avatar image clt2488 Mar 18 '15 at 02:04 AM

That's disappointing! Anyone know if keyboard input support for 3D UMG widgets is planned for the future?

(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