Show widget when mouse hover actor

Hi
I try to show widget when mouse hover on actor
by use collision box
problem is the widget flickering when mouse at some point of the box


1 Like

It happens because when the widget intercepts the mouse cursor, your collision box calls OnEndCursorOver.
You could avoid it in the following way:

You also need to work out the option when the cursor leaves the widget and there is no box under it.

My Products

3 Likes

Thank you

1 Like

You can create a dispatcher event in your widget, subscribe to it in the actor, and if there is no collision box under the cursor, hide the widget.

4 Likes

Thanks
my widget is attached to the box actor to show info until it destroy, not that fancy
but good to know for future solution if I need


Edit
I see the other problem that need this solution now :sweat_smile:
if not use mouse leave
some time widget will not go hidden
Thanks you