RealDocs

UBorder::OnMouseMoveEvent

property UMG Blueprint Since 4.0
#include "Components/Border.h"
Access: public Specifiers: UPROPERTYEditAnywhere

Description

Bindable event fired when the mouse moves over the border. Bind a function returning FEventReply from the widget's Details panel to handle it.

Caveats & Gotchas

  • This is a single-cast bindable delegate, not a BlueprintAssignable multicast event — it must be wired up via the 'Bind' button in the widget Details panel, not an EventDispatcher node in the graph.
  • The bound function must return FEventReply; returning an unhandled reply lets the event fall through to widgets beneath the border.
  • Only fires while the pointer is over the border's bounds, including its child content area.

Signature

UPROPERTY(EditAnywhere, Category=Events, meta=( IsBindableEvent="True" ))
FOnPointerEvent OnMouseMoveEvent;

Example

Bind a mouse move handler in the Details panel Blueprint
In the UMG Designer, select the Border, expand the Events category, click 'Bind' next to On Mouse Move Event, and choose or create a function with signature FEventReply(FGeometry MyGeometry, const FPointerEvent& MouseEvent). Return UWidgetBlueprintLibrary::Handled() to consume the event.

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.