# How do I click on a widget below a widget? 

**URL:** <https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603>\
**Category:** UI\
**Tags:** click-event, unreal-engine, Widget, question\
**Created:** [June 18, 2025, 2:32pm UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603 "2025-06-18T14:32:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Extrahdmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Post date:** [June 18, 2025, 2:32pm UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603/1 "2025-06-18T14:32:31Z")

</div>

Sorry for the beginner question.  
I’m trying to make a visual widget that changes color when the mouse hovers over it, but if I place this widget over a button, the button becomes unclickable. Also if i disable hit testing for a widget, the button will still be clickable, but the widget will not be able to detect the mouse.  
How can I make the bottom button clickable while overlapping the top widget?

---

<div class="post-metadata">

**Author:** ![Ken.Brueck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ken.Brueck](https://forums.unrealengine.com/u/Ken.Brueck)\
**Post date:** [June 18, 2025, 2:40pm UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603/2 "2025-06-18T14:40:06Z")

</div>

I’d recommend one of two approaches:

1. Nest the color-changing widget inside the button
2. Disable hit testing for the widget like you’ve already done, and then have the button hover event tell the color changing widget to do its thing.

---

<div class="post-metadata">

**Author:** ![Extrahdmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Post date:** [June 19, 2025, 4:24am UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603/3 "2025-06-19T04:24:08Z")

</div>

It seems complicated. Can’t these two be done independently? I want to use this widget in various places other than as a button.

---

<div class="post-metadata">

**Author:** ![Ken.Brueck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ken.Brueck](https://forums.unrealengine.com/u/Ken.Brueck)\
**Post date:** [June 20, 2025, 4:28pm UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603/4 "2025-06-20T16:28:53Z")

</div>

> It seems complicated.

Nesting the widget inside a button is about as simple as it gets. You can do that on a per-instance basis or create a button class that’s reusable. In either case, the color-changing widget is still its own thing that can be used in and out of buttons.

I’d argue that ensuring the widget is always placed on top of the button is going to be more work in the long run anyway.

---

<div class="post-metadata">

**Author:** ![Extrahdmi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Extrahdmi](https://forums.unrealengine.com/u/Extrahdmi)\
**Post date:** [June 21, 2025, 9:22am UTC](https://forums.unrealengine.com/t/how-do-i-click-on-a-widget-below-a-widget/2564603/5 "2025-06-21T09:22:07Z")

</div>

> [@Enable widget click through](https://forums.unrealengine.com/t/enable-widget-click-through/487393/2):
>
> is there a way to capture mouse input on both of them? Yes. I return “unhandled” but it seems not to work. Unhandled is the way to go and should work for this. Ensure the layer underneath has at least 1 element that is set to Visible. In the event binder You probably mean onMouseDown (or up), right? As in:

I searched diligently and found this. And this worked!  
However, it seems that you need to use override functions for everything you use to make this work.
