# How do I properly deactivate UI Interaction Widgets?

**URL:** <https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, Blueprint, UE4-27, question\
**Created:** [May 24, 2022, 6:19pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434 "2022-05-24T18:19:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zied\_Lazrak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zied_lazrak/32/477832_2.png) [@Zied\_Lazrak](https://forums.unrealengine.com/u/Zied_Lazrak)\
**Post date:** [May 24, 2022, 6:19pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434/1 "2022-05-24T18:19:17Z")

</div>

Hi everyone, can someone please explain to me how to properly deactivate a widget interaction and reset its initial state so it unhovers all the buttons that collided with it.

I’m trying to make a VR prototype in which whenever a widget interaction is activated the other widget interaction is disabled so I can’t hover buttons with it. And also hide the blue beam whenever an interaction widget does not collide with a UI widget.

The problem is whenever I deactivate a widget interaction while it’s hovering a button, that button remain permanently hovered, and the " is over hit test visible widget " always return true so that blue beam does not disappear.

Thank you !

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/a/1da0a0115dfd47c52fe1f8218da7c728e97f1df8.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/6/af64994c7a9e6bf046dd7d652623713949722215.png)  
 ![Image1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/c/85cb6d3fbfa636fc192101947ece8529316dbcc6.png)

---

<div class="post-metadata">

**Author:** ![tyconner](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tyconner/32/1203517_2.png) [@tyconner](https://forums.unrealengine.com/u/tyconner)\
**Post date:** [May 24, 2022, 6:29pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434/2 "2022-05-24T18:29:11Z")

</div>

Deactivating the component will cause the interaction to never return UnHover as the Virtual Pointer will be stuck in the last position the Widget Interaction places it. You also will not be able to get ‘Is Over Hit Test Visible Widget’ to change unless the component is activated.

There are some other solutions you can explore like changing Trace Channel or disabling Hit Testing. In our VR Sim we simply change the Interaction Distance.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/0/9809a6af26584a7db82f7d505e79955befc1eb10.png)

> **[Widget Interaction Component](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/UMG/UserGuide/WidgetInteraction/)**
>
> Outlines how to use the Widget Interaction Component to interact with 3D Widgets.

---

<div class="post-metadata">

**Author:** ![Zied\_Lazrak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zied_lazrak/32/477832_2.png) [@Zied\_Lazrak](https://forums.unrealengine.com/u/Zied_Lazrak)\
**Post date:** [May 24, 2022, 6:39pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434/3 "2022-05-24T18:39:34Z")

</div>

Yes Yes Yeeeees ! Setting the interaction distance is a great idea ! Just what I needed ! I already tried disabling Hit Testing but it produces the same result as deactivating the widget interaction. Thank youuuu !

---

<div class="post-metadata">

**Author:** ![tyconner](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tyconner/32/1203517_2.png) [@tyconner](https://forums.unrealengine.com/u/tyconner)\
**Post date:** [May 24, 2022, 6:56pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434/4 "2022-05-24T18:56:29Z")

</div>

I guess that makes sense as to why I did it that way then. It was a very long time ago that we had the same issue trying to disable interaction. Glad I could help!

---

<div class="post-metadata">

**Author:** ![Javad\_Rezaii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/javad_rezaii/32/948244_2.png) [@Javad\_Rezaii](https://forums.unrealengine.com/u/Javad_Rezaii)\
**Post date:** [September 15, 2023, 4:54pm UTC](https://forums.unrealengine.com/t/how-do-i-properly-deactivate-ui-interaction-widgets/565434/5 "2023-09-15T16:54:44Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/e/52e3f00efa1c84c5460805d9a9b9c8c65ddbf2b2.png)  
You can disable a 3D widget collision this way.
