# Problem with widget component

**URL:** <https://forums.unrealengine.com/t/problem-with-widget-component/483894>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [May 25, 2021, 6:01pm UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894 "2021-05-25T18:01:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![D.Shchepetkov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d.shchepetkov/32/467366_2.png) [@D.Shchepetkov](https://forums.unrealengine.com/u/D.Shchepetkov)\
**Post date:** [May 25, 2021, 6:01pm UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/1 "2021-05-25T18:01:23Z")

</div>

Hi all, my question is simple: How interact with “HUD” and with widget component “Space = **screen** ” in the same time? Please help find solution.

 ![339751-problem.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/f/52fc7c780c3558e10663de0fd54a893eb2b7e623.jpeg)

My problem is I have some game UI in HUD and in my pawn (via widget component), and HUD is block widget component UI. I know that I can hide the HUD when I have selected a character, but I need to use the HUD with widget component in the **same time**.

---

<div class="post-metadata">

**Author:** ![ugmoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ugmoe](https://forums.unrealengine.com/u/ugmoe)\
**Post date:** [May 25, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/2 "2021-05-25T18:22:46Z")

</div>

when you add the WidgetComponent, set the Z-order

For example, if your HUD has a Z-order of 0  
Then, your WidgetComponent should have a Z-order of 1

 ![339752-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/3/1c370520fa7e25f1b052bd8375bb773cd1d189c1.png)

 ![339753-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/a/eba415d93e99aa924695a0997c0f7a03eeed1d06.png)

---

<div class="post-metadata">

**Author:** ![D.Shchepetkov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d.shchepetkov/32/467366_2.png) [@D.Shchepetkov](https://forums.unrealengine.com/u/D.Shchepetkov)\
**Post date:** [May 26, 2021, 5:41am UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/3 "2021-05-26T05:41:07Z")

</div>

Hi Newest, I already tried this approach, doesn’t help.

 ![339797-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/e/2fefb18aac48339e103b98ccc8f3d02c8ebb2f3a.png)

 ![339798-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/9/4498386e78acea4ec8a937c2873181a425c2ecc5.png)

---

<div class="post-metadata">

**Author:** ![ugmoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ugmoe](https://forums.unrealengine.com/u/ugmoe)\
**Post date:** [May 26, 2021, 7:03am UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/4 "2021-05-26T07:03:40Z")

</div>

try setting the root of your HUD to Non hit-testable (self and children)

if this doesn’t work then post a screenshot of your OnMouseButtonDown function

 ![339812-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/6/d16a2d45976929b9633710597ddf3dcae3f9073f.png)

---

<div class="post-metadata">

**Author:** ![D.Shchepetkov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d.shchepetkov/32/467366_2.png) [@D.Shchepetkov](https://forums.unrealengine.com/u/D.Shchepetkov)\
**Post date:** [May 26, 2021, 8:09am UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/5 "2021-05-26T08:09:16Z")

</div>

Unfortunately, it does not help, I do not override OnMouseButtonDown function.

 ![339816-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/b/6ebb2d82806955db2b2ad989ae29834749fa7ba1.png)

 ![339817-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/a/83a6d3dcfa85c6d506a0dfc77536bea3ecdc8f81.png)

---

<div class="post-metadata">

**Author:** ![D.Shchepetkov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d.shchepetkov/32/467366_2.png) [@D.Shchepetkov](https://forums.unrealengine.com/u/D.Shchepetkov)\
**Post date:** [May 26, 2021, 8:12am UTC](https://forums.unrealengine.com/t/problem-with-widget-component/483894/6 "2021-05-26T08:12:13Z")

</div>

If I select “Not hit-testable (self and children)” I able to use widget component but my HUD UI is not clickable. ☹
