# Widget Interaction component fails to hover and click (was working previously)

**URL:** <https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [September 27, 2016, 12:40am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622 "2016-09-27T00:40:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FatalFeel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatalFeel](https://forums.unrealengine.com/u/FatalFeel)\
**Post date:** [September 27, 2016, 12:40am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/1 "2016-09-27T00:40:22Z")

</div>

Hello,

I am having some trouble and would like to know if anyone know what is going first.

Background:  
I am working on a VR game and set up a interactive widget, placed it in a blueprint and was having fun with the new experimental widget.  
It worked perfectly fine with both hovering and clicking ability after I set up the pointer key as left click mouse button.

So I moved on with my project and twerk other settings/put in meshes/set up other blueprints in the project.  
All of a sudden the widget interaction has no effect to any widget at all. Not even firing a hover event.  
I turned on the debug and I was able to see that the interaction actually passed through the widget so it was not the distance problem.

I would like to know if anyone has experienced this issue since I have did a fair bit of research and found no one was having this problem yet.

Here is a link to the setup of my widget interaction (very standard):  
[http://imgur.com/MOyTuFs](http://imgur.com/MOyTuFs)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![FatalFeel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatalFeel](https://forums.unrealengine.com/u/FatalFeel)\
**Post date:** [September 27, 2016, 4:19am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/2 "2016-09-27T04:19:45Z")

</div>

Update:  
I changed the widget interaction source to custom and manually plug in the source every tick and the interaction worked again.  
This could be a quick fix for people who want to solve it desperately.

However, it is not an ideal solution for me because I have to minimize the use of tick events as I am working on a VR game.  
So the problem persist and I hope someone can help. Thank you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b255ac231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b255ac231](https://forums.unrealengine.com/u/anonymous_user_b255ac231)\
**Post date:** [September 27, 2016, 8:12am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/3 "2016-09-27T08:12:32Z")

</div>

> [@akjim;600532](#):
>
> Hello,
> 
> I am having some trouble and would like to know if anyone know what is going first.
> 
> Background:  
> I am working on a VR game and set up a interactive widget, placed it in a blueprint and was having fun with the new experimental widget.  
> It worked perfectly fine with both hovering and clicking ability after I set up the pointer key as left click mouse button.
> 
> So I moved on with my project and twerk other settings/put in meshes/set up other blueprints in the project.  
> All of a sudden the widget interaction has no effect to any widget at all. Not even firing a hover event.  
> I turned on the debug and I was able to see that the interaction actually passed through the widget so it was not the distance problem.
> 
> I would like to know if anyone has experienced this issue since I have did a fair bit of research and found no one was having this problem yet.
> 
> Here is a link to the setup of my widget interaction (very standard):  
> [http://imgur.com/MOyTuFs](http://imgur.com/MOyTuFs)
> 
> Thanks in advance!

This happened to me once, changing the Virtual User Index fixed it for me, not sure why, but it did 😛

---

<div class="post-metadata">

**Author:** ![FatalFeel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatalFeel](https://forums.unrealengine.com/u/FatalFeel)\
**Post date:** [September 28, 2016, 3:38am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/4 "2016-09-28T03:38:20Z")

</div>

> [@;600621](#):
>
> This happened to me once, changing the Virtual User Index fixed it for me, not sure why, but it did 😛

Thank you for your reply. Unfortunately, changing the virtual user index did not work for my case :S

---

<div class="post-metadata">

**Author:** ![Gedden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gedden](https://forums.unrealengine.com/u/Gedden)\
**Post date:** [May 10, 2017, 3:35pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/5 "2017-05-10T15:35:10Z")

</div>

Its worth mentioning I ran into a similar issue. I had to ensure that the virtual use index both of of my widget interaction components were different from each-other – so its less about changing them than it was making sure they were different.

---

<div class="post-metadata">

**Author:** ![TyeFang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TyeFang](https://forums.unrealengine.com/u/TyeFang)\
**Post date:** [February 6, 2018, 10:03pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/6 "2018-02-06T22:03:27Z")

</div>

I spent some time trying to implement VR into an existing map while using a web browser widget, and it stumped me for a while. Here is what finally worked for me.

1. In the Blueprint Class that controls your WidgetInteraction Component, make sure, in Class Defaults, that Input \> Auto Receive Input is set to your player (typically Player 0).

2. Check your nav mesh collision details. Make sure your “NavMeshBoundsVolume” (in Details) has Collision Presets set to “NoCollision”

Really hope this helps someone.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bb39f4a9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bb39f4a9](https://forums.unrealengine.com/u/anonymous_user_bb39f4a9)\
**Post date:** [March 9, 2018, 11:13pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/7 "2018-03-09T23:13:18Z")

</div>

I ran into this error and found the same thing as “akjim”\*\*,\*\*that setting the WIC’s (Widget Interaction Component) Integration Source from World to Custom + setting up a line trace that would pass in its Hit Result to the WIC’s Custom Hit Result on Tick would work for me as well, but I didn’t want to use that (for VR Purposes). Instead, I dug into the Engine code and figured out the problem.

I came from VR\_Works UE4.15 -\> VR\_Works UE4.18, so I compared the WidgetInteractionComponent code from both of them “D:\UnrealEngine\Engine\Source\Runtime\UMG\Private\Components\WidgetInteractionComponent.cpp” and found they went from doing a single line trace to multi-line traces. This means UE now cycles through all their hits and tries to assign the correct one to their normal result that is returned, if they ended up hitting a widget. What happens instead is that if they fail to find a widget on any of the multi-hits, they stop searching. I was hitting other overlap collision elements in my scene (was tracing on Visibility) before I was hitting my 3D Widget, so the for loop would instantly break and never find my widget(s). I commented out this break on line 210 and this fixed the issue.

I also added a break on a newline after 204 so that the first widget I’d trace-hit would be used and the engine would not continue searching for other widgets. Example: Widget1 is in front of Widget2. Widget1 will be interacted with first, over Widget2, until removed from the line-trace to Widget2.

---

<div class="post-metadata">

**Author:** ![Weibye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Weibye](https://forums.unrealengine.com/u/Weibye)\
**Post date:** [October 30, 2018, 2:43pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/8 "2018-10-30T14:43:56Z")

</div>

Had the same issue, found that the solution was in the Z-order of my UMG elements.  
Just in case anyone else comes across this topic.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_586d8a2c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_586d8a2c](https://forums.unrealengine.com/u/anonymous_user_586d8a2c)\
**Post date:** [December 8, 2019, 12:48am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/9 "2019-12-08T00:48:58Z")

</div>

Just for future reference, for anyone that searches for solutions to this issue via Google, I would like to add that I had the exact same problem. The solution turned out that the collision sphere on the object that had the widget was set to Overlap for Visibility and Camera. By setting those to Ignore, my widget started working. Anything random in the area that can effect the Visibility and Camera Channels in the SLIGHTEST can stop a widget from working. Took me hours to figure that!

---

<div class="post-metadata">

**Author:** ![Davidaurecon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davidaurecon](https://forums.unrealengine.com/u/Davidaurecon)\
**Post date:** [March 2, 2020, 9:30pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/10 "2020-03-02T21:30:43Z")

</div>

Hi, I’m having the same issues with button/widget being hard to click in VR.  
The widgets are working fine in bp but once you in VR they stop being clickable/hover and it’s really random. A widget that’s working fine from a distance will stop working if you’re a bit closer and the other way round. I can’t find any pattern in the way that they stop being active. It’s not just a distance thing, it might be a trace issue passing through or something.  
In the meantime i really need them to work at all time, so i’m gonna set up the widget interaction to custom, as \*\*[FatalFeel](https://forums.unrealengine.com/member/377842-fatalfeel) \*\*mention, but what do you plug into Hit Result?

---

<div class="post-metadata">

**Author:** ![JonathanArmstrong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanArmstrong](https://forums.unrealengine.com/u/JonathanArmstrong)\
**Post date:** [March 30, 2020, 1:19am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/11 "2020-03-30T01:19:00Z")

</div>

My issue was that the widget interaction was rotated and always pointing to the right/right, even though the motion controller had it pointing forward. This was because the motion controller was being attached to a socket on the character skeletal mesh, and using whatever orientation that socket had.

The fix: turn on “show debug” for the widget interaction. Then, use “AddLocalRotation” to rotate the WidgetInteraction component to get it to point forward.

---

<div class="post-metadata">

**Author:** ![KeyC0de](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/keyc0de/32/1099072_2.png) [@KeyC0de](https://forums.unrealengine.com/u/KeyC0de)\
**Post date:** [April 18, 2020, 6:28pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/12 "2020-04-18T18:28:28Z")

</div>

My issue was that the skeletal mesh’s collision mesh I had the widget attached on was interfering with its detection. Thus I set up proper collisions on it and all worked perfectly. Prior the widget component’s window wasn’t even detecting the debug line coming out of the player’s Widget Interaction Component.

---

<div class="post-metadata">

**Author:** ![glaucobacchi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@glaucobacchi](https://forums.unrealengine.com/u/glaucobacchi)\
**Post date:** [May 13, 2020, 1:37pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/13 "2020-05-13T13:37:59Z")

</div>

My issue was that I had many 3d widget buttons as widget components in one Actor all sharing the same physical space to create a set of menu “screens”. I was turning on and off their visibility to show only the currently desired set of buttons but I found that I had to also toggle collisions for the components so that when they were visible, collisions were enabled and vice versa.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c040f2cd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c040f2cd1](https://forums.unrealengine.com/u/anonymous_user_c040f2cd1)\
**Post date:** [May 16, 2020, 3:28pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/14 "2020-05-16T15:28:41Z")

</div>

> [@Weibye](#):
>
> Had the same issue, found that the solution was in the Z-order of my UMG elements.  
> Just in case anyone else comes across this topic.

OMG, thank you \<3 \<3 \<3 \<3 \<3 I have been troubleshooting this one for waaaay too long! You my man, are a lifesaver!

---

<div class="post-metadata">

**Author:** ![ARERIFF\_ALEXANDE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ARERIFF\_ALEXANDE](https://forums.unrealengine.com/u/ARERIFF_ALEXANDE)\
**Post date:** [June 7, 2021, 5:18am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/15 "2021-06-07T05:18:12Z")

</div>

For those who are having this problem with the bigger project, it obviously because of collision between the widget bp and other collision box. The solution is you need to check your trace channel in widget interaction either it blocks or overlaps in other collision boxes. My best solution is to create a new collision channel through the project setting with a default setting of ignore. Then reapply your Widget interaction and widget in bp(make it overlap and you can leave the rest to ignore) with those new collision channel. Well that solve the problem

---

<div class="post-metadata">

**Author:** ![AxSoler](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/axsoler/32/250446_2.png) [@AxSoler](https://forums.unrealengine.com/u/AxSoler)\
**Post date:** [January 21, 2022, 4:34pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/16 "2022-01-21T16:34:20Z")

</div>

> [@ARERIFF\_ALEXANDE](#):
>
> For those who are having this problem with the bigger project, it obviously because of collision between the widget bp and other collision box. The solution is you need to check your trace channel in widget interaction either it blocks or overlaps in other collision boxes. My best solution is to create a new collision channel through the project setting with a default setting of ignore. Then reapply your Widget interaction and widget in bp(make it overlap and you can leave the rest to ignore) with those new collision channel. Well that solve the problem

It’s been two frustrating days, now.  
I’ve tried almost everything. THIS worked for me. Thanks! 😀

If someone arrives here with this problem and doesn’t know much about collision channels (as it was my case) I recommend you these two links.

- [Traces Overview](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Tracing/Overview/)
- [Add a Custom Object Type to Your Project](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Physics/Collision/HowTo/AddCustomCollisionType/)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c14c0719](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c14c0719](https://forums.unrealengine.com/u/anonymous_user_c14c0719)\
**Post date:** [July 14, 2022, 3:37pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/17 "2022-07-14T15:37:42Z")

</div>

Both of you thanks ! I’m new to Unreal and this solution saved me 🙂

---

<div class="post-metadata">

**Author:** ![Koribian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/koribian/32/466049_2.png) [@Koribian](https://forums.unrealengine.com/u/Koribian)\
**Post date:** [January 28, 2023, 1:30pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/18 "2023-01-28T13:30:54Z")

</div>

Any one else having similar problems, try using the on pressed event of buttons and not the on clicked events!

---

<div class="post-metadata">

**Author:** ![BAM5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BAM5](https://forums.unrealengine.com/u/BAM5)\
**Post date:** [September 20, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/19 "2023-09-20T12:53:38Z")

</div>

So after messing about with this for far too long, I’d warn that you should not have any widget interaction components (WIC) that have the same `pointer index` under the same process. **This includes across multiple PIE clients.** This is even an issue across standalone clients.

In order to make the WIC work in PIE I’ve just assigned a random integer (0-1billion) to the `pointer index` at runtime. The odds are so low that a random int will coincide with another it’s good enough. AFAIK, unless you make an editor subsystem, you can’t really do a counter for the WIC `pointer index` as the PIE instances are pretty well separated.

Sidenote: I thought that `virtual user index` and `pointer index` would combine to create a unique id for the WIC in the slate system, but that doesn’t seem to be the case. It seems like only the `pointer index` matters and the `virtual user index` is just there to group pointers together.

@Koribian This sounds like what I ran into. It’s caused by multiple WICs reporting to the same interaction state variables in slate. “Pressed” doesn’t require a long standing state whereas “clicked” requires a press and a release over the same widget. Since multiple WICs are reporting different hover locations / states / whatever in the same tick, the WIC states conflict and the clicked & hover events don’t work properly.  
Do the randomized pointer index thing I described above to fix your issue.

---

<div class="post-metadata">

**Author:** ![Jun\_Yeh1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jun\_Yeh1](https://forums.unrealengine.com/u/Jun_Yeh1)\
**Post date:** [November 11, 2023, 4:42am UTC](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622/20 "2023-11-11T04:42:31Z")

</div>

Just to add in this thread for people googling this problem, check if your press & release key is set to press pointer key and release pointer key, but not both set to press!!

I had the problem that I could fire click event only one time, and after that it was only hover, and never click. When I hit click, I was able to print string in BP, but not in widget. Trouble shoot everything & collision & make a custom tracing channel & enable input & set enable click event … then my colleague finds out I had both connect to press pointer key, so my left button was never released.

Just in case there are my dumb dumb friend googling, here’s a potnetial cause!

[Next page](https://forums.unrealengine.com/t/widget-interaction-component-fails-to-hover-and-click-was-working-previously/74622.md?page=2)
