Set Input UI Only - Removes Keyboard Input

Ok, this is old but it appears on google search, so I thought I could share what worked for me.
I’m not making a game but this fits my project as I want.

In my case I want to open the UI and lock movement, since the UI has the “focus” (game and ui mode on the A flip flop node) I can’t look around with the mouse, which is what I want. I also don’t want to click once again to set the focus to the UI or the game mode, the UI works on the first click, the game input works right when the menu goes out and I can toggle the menu without focusing on it (B flow on the flip flop node).

On the pawn:

Input is a bit different on the widget, here we override the “on key down” function:

1 Like