RealDocs

UBorder::OnMouseButtonUpEvent

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

Description

Bindable event fired when a mouse button is released while the pointer is over the border, letting a bound handler consume the input and control the resulting FEventReply.

Caveats & Gotchas

  • Fires independently of OnMouseButtonDownEvent — a press that started outside the border and is released over it will still trigger this event.
  • The bound handler must return an FEventReply; return Handled() to stop the event bubbling further up the widget tree, or Unhandled() to let it propagate.

Signature

FOnPointerEvent OnMouseButtonUpEvent

Example

Handle mouse-up on a border C++
FEventReply UMyUserWidget::HandleBorderMouseUp(FGeometry MyGeometry, const FPointerEvent& MouseEvent)
{
    // React to the release here
    return UWidgetBlueprintLibrary::Handled();
}

void UMyUserWidget::NativeConstruct()
{
    Super::NativeConstruct();
    if (MyBorder)
    {
        MyBorder->OnMouseButtonUpEvent.BindDynamic(this, &UMyUserWidget::HandleBorderMouseUp);
    }
}

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.