RealDocs

UButton::OnReleased

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

Description

Multicast event broadcast when the button is released after having been pressed.

Caveats & Gotchas

  • Fires on release regardless of whether the pointer was still over the button, so it can fire even when OnClicked does not.
  • Do not assume OnReleased always follows an OnClicked in the same frame or interaction — with MouseDown-style click methods the click already fired on press.

Signature

UPROPERTY(BlueprintAssignable, Category="Button|Event")
FOnButtonReleasedEvent OnReleased;

Example

Bind a native handler to OnReleased C++
MyButton->OnReleased.AddDynamic(this, &AMyHUD::HandleButtonReleased);

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.