How to avoid initial mouse click after game start?

In my default startup map I load a UMG menu via the level BP.
That works fine, I can use the menu and launch the game from them as intended.

However, before I can click on to a menu button, I need to click once into the game window.
Thus only from the second click on the mouse cursor interacts with the game.
It’s as if the window is not in focus or something like that.

Any ideas how to fix that in order to avoid the need for this first extra click?

Use the **Set Input Mode UI **node.

In Play-in-Editor you may also have to change a setting in the editor settings so you don’t have to click in the viewport to gain control. I think it’s in the Play advanced settings (the little arrow next to the Play button -> Advanced).

5 Likes

Great, thanks a lot!