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.
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.
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 !
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!