# Can umg borders/images block clickthrough into the game world?

**URL:** <https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300>\
**Category:** UI\
**Tags:** click, unreal-engine, question, UMG\
**Created:** [September 24, 2015, 9:42pm UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300 "2015-09-24T21:42:08Z")\
**Posts on this page:** 5\
**Page:** 1

<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:42pm UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300/1 "2015-09-24T21:42:08Z")

</div>

For example, in an RTS, (where the input mode must be “game and ui”), there are definitely situations where clicking on the background of an opaque umg border element on an onscreen menu, should _not_ select a character pawn behind it.

I had assumed setting a umg border’s visibility to “visible” would consume the mouse click, but this is not the case. Am I missing something?

---

<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 29, 2015, 3:16pm UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300/2 "2015-09-29T15:16:44Z")

</div>

So the answer here is that border elements should return “handled” for the OnMouseButtonDown, OnMouseButtonUp, and OnMouseDoubleClick events with binding functions. It seems a bit silly to have to do this for every border we don’t want to be clickthrough, and other elements like images don’t have all the events exposed, but this is a serviceable workaround.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb68f71a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb68f71a1](https://forums.unrealengine.com/u/anonymous_user_fb68f71a1)\
**Post date:** [January 30, 2017, 10:10am UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300/3 "2017-01-30T10:10:28Z")

</div>

“-- is a serviceable workaround.”

Suppose, but then how to click through the image?

---

<div class="post-metadata">

**Author:** ![Saddty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saddty](https://forums.unrealengine.com/u/Saddty)\
**Post date:** [November 15, 2017, 8:18am UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300/4 "2017-11-15T08:18:43Z")

</div>

Selftest hit invisible

---

<div class="post-metadata">

**Author:** ![FrancoACT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancoACT](https://forums.unrealengine.com/u/FrancoACT)\
**Post date:** [May 24, 2018, 11:22pm UTC](https://forums.unrealengine.com/t/can-umg-borders-images-block-clickthrough-into-the-game-world/333300/5 "2018-05-24T23:22:50Z")

</div>

Agree, but you don’t need use binding functions (they are very resource consuming). You can override the functions from the tab MyBlueprint/Functions/Overridable.
