[UMG] Hover event continuous fire in VR

Hello,

I think I found a bug related to hover event with umg in VR.

Normal behavior with a mouse

VR behavior

The hover and unhover event is called continually.

Tested with 4.15 and 4.16.

Same Issue with 4.14.3

Can you reproduce it just using the laser pointer mode for the WIC? Also, if you havenā€™t bound your WICs to different fingers, then the two virtual pointers will fight assuming you have more than one in the scene.

I have only one WIC in the scene so I thought I could leave the index pointer at 0 but by passing it to 1, it solves the problem. Sorry for the inconvenience.

Thanks Nick Darnell !

1 Like

Just so others know what itā€™s meant by index pointer, Iā€™m putting an image here. I was using two Widget Interaction Components. One per hand, and I was also getting this ā€œfightingā€ for button states. You can find the Pointer Index inside the Widget Interaction Component. Make it different for each, and all should work.

193659-pointer.png

Thankyou, was stumped on this issue for ages!! My issue was because I had multiple VR pawns in the scene, the player was possessing one during ā€˜game pauseā€™ and another during gameplay. They both derived from the same class, so they were both assigned the same pointer index by default!

That works! Thank you!