Mouse cursor has no effect on Button

Hi folks,

i’m having the issue that as soon as i start my game and the Main Menu shows up, i can’t click on the Buttons. So the mouse cursor is locked to the screen. But when i change the window in Windows, e.g. with “alt +tab” and i hover in the game window over the buttons, they react to my interaction.

So my Question is, how can i make the mouse cursor influence the buttons when it should ?

If you need some screenshots, just let me know.

Thanks

Try using the Set Input Mode UI Only node in the construct/begin play of your main menu, and use your main menu as the focused widget. By default, the mouse only interacts with the game world and not the UI layer, so that might be the cause of your problem.

Thanks for the answer, i tried it but didn’t work. Did i do it right? I can’t choose a Widget to focus in the Set Inout Mode UI Only

The WidgetToFocus dropdown is a reference type, so it will only list currently existing widgets. Since you are not running the game, nothing will show, this is normal.

What you want to do is place the SetInputModeUIOnly node after the create main menu node, and connect the reference to your newly created main menu (ReturnValue of the Create Widget node) into the WidgetToFocus. This will give focus to your main menu.