# I can click through my menu to game world

**URL:** <https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109>\
**Category:** Rendering\
**Tags:** visibility, unreal-engine, menu, editor, question, Blueprint\
**Created:** [March 15, 2015, 6:45pm UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109 "2015-03-15T18:45:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Interitus384](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Interitus384](https://forums.unrealengine.com/u/Interitus384)\
**Post date:** [March 15, 2015, 6:45pm UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109/1 "2015-03-15T18:45:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hinato\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hinato\_1](https://forums.unrealengine.com/u/Hinato_1)\
**Post date:** [April 12, 2015, 2:12am UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109/2 "2015-04-12T02:12:29Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![fisj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fisj](https://forums.unrealengine.com/u/fisj)\
**Post date:** [September 24, 2015, 8:59pm UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109/3 "2015-09-24T20:59:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 24, 2015, 9:08pm UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109/4 "2015-09-24T21:08:51Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/4/644d395ed2b7be855e44b34c5053b44df0e792af.png)

---

<div class="post-metadata">

**Author:** ![fisj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fisj](https://forums.unrealengine.com/u/fisj)\
**Post date:** [September 24, 2015, 9:20pm UTC](https://forums.unrealengine.com/t/i-can-click-through-my-menu-to-game-world/311109/5 "2015-09-24T21:20:07Z")

</div>

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