OnBegincursorover and onendcursorover : display image in a widget

Hello Community ! I have created a basic blueprint that will display a widget when we roll over a static mesh and will remove it from viewport when we end cursorover, however i have a problem : when i roll over the widget once he is displayed, the screen is blinking because the widget is displayed on top of the mesh, so when i move the on the widget it constantly comes and goes as if i was rolling on and onver the static mesh … Here is my code, could you tell me how to solve this issue ?

In your widget, select the image and set the Visibility to Not Hit-Testable(Self):

If you have more elements, then set the canvas to Not Hit-Testable(Self & All Children).

More info.

Visibility : The render visibility and interactivity visibility of the widget.

  • Visible: Renders the widget and allows it to be intractable with the cursor.
  • Collapsed: Does not render, not interactable, and takes up no space in the layout.
  • Hidden: Does not render and is not interactable but occupies layout space.
  • Not Hit-Testable/Hit Test Invisible(Self & All Children): Does render the widget but cannot be interacted with and does not allow its children to be interactable.
  • Not Hit-Testable/Hit Test Invisible(Self Only): Does render the widget but only this widget cannot be interacted with.

Before:
W_01
After:
W_02

Hope it helps.

1 Like

Thank you very much !!! Resolved :slight_smile:

1 Like