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"

[4.6.1/4.7 P5] Click in UMG component no focus the game

If in the editor you click to play the game and for example the game have a menu, when you put the mouse over the buttons of the game:
1º- Interact with the mouse.
2º- If click in the buttons interact and create a click but the mouse/keyboard don't focus in the game to play.

Video Example: https://dl.dropboxusercontent.com/u/28070491/UE/Forums/2015-02-10-1653-34.flv

Product Version: Not Selected
more ▼

asked Feb 10 '15 at 10:59 AM in Bug Reports

avatar image

633 60 76 112

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

1 answer: sort voted first

Hello Hevedy,

If you would like set focus to the keyboard you could try using the set keyboard focus node. I hope this helps.

Here is an example.

alt text

Make it a great day

more ▼

answered Feb 10 '15 at 06:19 PM

avatar image

Rudy Q ♦♦ STAFF
47.7k 545 132 522

avatar image Hevedy Feb 10 '15 at 06:54 PM

Ok thanks, but is a main problem with the mouse and the click with the buttons.

avatar image Rudy Q ♦♦ STAFF Feb 10 '15 at 07:19 PM

Hello Hevedy,

I am uncertain as to the exact issue you are experiencing. Do you need help setting focus between Game and UI?

If so you could use the "Set Input Mode Game Only" node and the "Set Input Mode Game And UI" node

Here is an example:

alt text

mousefocushelp.png (182.9 kB)
avatar image Hevedy Feb 11 '15 at 12:41 PM

No, the problem is the focus but between the OS/Editor and the Game/Viewport.
For example, if you have a normal game in a window mode (in this case viewport) when you click in the buttons of game menu, automatically the game focus your keyboard & mouse and are locked to the game window.
If you see my video in the post, when i put the mouse over or click in the buttons the mouse don't is locked to the viewport and give the effect of normal button from normal program. That is.
* Anyway thanks for the other examples.

avatar image Rudy Q ♦♦ STAFF Feb 11 '15 at 03:00 PM

Hello Hevedy,

If you would like to lock the mouse to the viewport, you could use the "Set Input Mode Game and UI" node. There is a check box (as seen in the above example) that you can check that will lock the mouse to the screen.

Make it a great day

avatar image Hevedy Feb 11 '15 at 04:13 PM

That give 2 problems:
1º- I got the mouse set to no visible and now is visible and the Hide cursor & show mouse cursor are unchecked.
2º- Now is locked but if you press the windows button navigate in the computer and then press in a BUTTON from the game viewport now is bug is back, but if press in the background (NO BUTTONS) then is locked.

avatar image Rudy Q ♦♦ STAFF Feb 13 '15 at 02:58 PM

Hello Hevedy,

Could you explain exactly what it is that you are trying to achieve? If you could give a more detailed explanation of exactly what it is you are trying to do I may be able to assist you more easily.

As for the button causing the screen to unlock, you could do something like the following. Keep in mind this is only an example and you may need to use "Set Input Mode Game only" or "Set Input Mode UI only". If you place these at the end of your button click events it will insure that your mouse is always locked to the screen.

alt text

lockscreenhelp.png (54.7 kB)
avatar image Hevedy Feb 13 '15 at 08:27 PM

I'm tested that in other games, probably me bad sorry. But thanks for all, this solve some of my problems thanks.
Never mind the focus problem... solved.

(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