RealDocs

UButton::OnHovered

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

Description

Multicast event broadcast when the pointer begins hovering over the button.

Caveats & Gotchas

  • Its counterpart OnUnhovered fires when the pointer leaves — bind both if you need to drive a full hover in/out visual state from Blueprint or C++.
  • On touch platforms there's typically no true hover state, so this event may not fire reliably outside of mouse-driven platforms.

Signature

UPROPERTY( BlueprintAssignable, Category = "Button|Event" )
FOnButtonHoverEvent OnHovered;

Example

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

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.