Detect mouse overlapping a billboard

It should not work. Billboards have no collision and no way of interacting with the cursor.

Depending on what the end goal is, the next closest thing is a Widget Component in Screen Mode or a regular widget.

If you must use a billboard, add a collision box and attach the billboard.

Hi.

Should OnCursorOverlapBegin/End work on UMaterialBillboardComponents?
I want to run some code when a player hovers over a billboard but the event is not triggered. It works on static meshes though.

There is one more thing.
I have a Widget that the user can bring up by pressing a key. The widget pops up at the bottom of the screen , leaving the reset of the viewport untouched - the player can still see the game. The problem is that now the engine doesn’t fire OnCursorOverlapBegin events when I hover over something that handles this event, as there is UI on the screen.
I think that the it’s caused by the layout that I have a Canvas that occupies the entire screen and a Size box inside it, which is snapped to the bottom of the screen.
How can I make it work, so that I have both the UI and overlap events? (I have set Input mode to GameAndUI at BeginPlay() in my PlayerController)

You can find out what the cursor is hitting by running the [widget reflector][1]. And since the docs are a wee bit all over the place for this, here’s a primer:

  • run the project
  • fire up the Reflector
  • run Pick Hit-Testable Widgets
  • mouse over the in game widgets and observe the reflector window

It will show you which UI element the cursor is interacting with. If it is, indeed, a widget, it should be enough to set the visibility of the offending element to Not Hit-Test Invisible (Self Only)

The reflector is showing outdated widget visibility enumeration names, so that can be somewhat confusing, too.