UButton::OnUnhovered
#include "Components/Button.h"
Access: public
Specifiers: UPROPERTYBlueprintAssignable
Description
Multicast delegate broadcast when the pointer stops hovering over the button after having hovered it.
Caveats & Gotchas
- • Fires on hover-exit only — it does not fire on initial widget construction even if the cursor happens to already be outside the button.
- • Pairs with OnHovered; if you bind one you almost always want to bind both to correctly track hover state on the gameplay side.
Signature
UPROPERTY( BlueprintAssignable, Category = "Button|Event" )
FOnButtonHoverEvent OnUnhovered; Example
Bind in C++ C++
Button->OnUnhovered.AddDynamic(this, &UMyWidget::HandleButtonUnhovered);
void UMyWidget::HandleButtonUnhovered()
{
// Restore default visual state
} See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?