Pointer exit listener doesn't work in Unity if pointer is going outside the artboard in rive widget
I was trying to implement a button that have hover effect, but it didn’t work correctly in Unity, so I replicate it with a simple project with this setup
2025-04-28 16-59-06.mkvAs you can see it’s a simple square that will change color on hover start (pointer enter) and hover end (pointer exit). But when I export it and put it into Unity using Rive Widget, the color change on hover start but does not change back on hover end.
2025-04-28 17-04-30.mkvThis seems to happen if the rive widget is set to have same width and height as the original artboard, causing the pointer to exit outside the rive widget area.
You could see the exception happen when the mouse is moving to the grey line under the white box, because that grey line is still inside the artboard. It seems like the hover exit can work if the pointer exit the component but still inside an artboard.
I also tried to increase the width of the RiveWidget object in Unity so it has some empty space on the side like this
The pointer exit can work if the mouse is going to left or right, but it’s still a problem when exiting to the top (which doesn’t have empty space)
I think this is pretty easy to reproduce and pretty crucial. It can be worked around by adding empty space in the edge with margin in the artboard, but it will mess up the layout in Unity. And also for example if someone wants to make an inventory UI with components that are tight with each other, it will also be a problem.
I’m using version 0.3.5 if the rive unity plugin, is there a workaround or a fix coming for this?