I can click through my menu to game world

I’ve made my UMG menu, and added it to the viewport. It covers about 80% of the screen, but I can click through the background of the menu and can still interact with the world behind it. From a conversation in IRC, it seems that setting the border of my menu to “visible” should block mouse input to the game world behind it. Buttons on the menu will block the mouse and do what they’re supposed to.

I’m using the top down template, which has the mouse always available, so I can click on things in the world to interact with them, like pick them up, etc. But I also have menus to interact with. Not sure what is wrong.

I’m having the same problem and can’t find an answer…
When my mouse cursor is hovering over my hud elements clicking gives input to the game world.
Help in blocking this would be appreciated!

I’d like an answer to this also. In situations where input mode is set to game and ui, sometimes clicking through a ui element (such as a border) is undesirable.

When you pull up the menu you need to make sure that your buttons consume the mouse input so that they are all that fires when you select them. Additionally if you want to prevent the player from interacting with the world, make sure that you set the input to UI only as opposed to Game and UI, which can be done with the “Input mode UI only” node, as seen here:

60089-inputmodeui.png

Edit: On rereading … in the OP’s case of a modal menu, your solution is correct. I will post a new question in answerhub.