AActor::NotifyActorBeginCursorOver
#include "GameFramework/Actor.h"
Access: public
Specifiers: virtual
Description
Called by the engine when the mouse cursor first moves over this actor while click-events are enabled on the player controller. Override to add hover logic in C++.
Caveats & Gotchas
- • Only fires when bEnableMouseOverEvents is true on the owning PlayerController. It is off by default and must be explicitly enabled.
- • The C++ virtual is paired with the Blueprint event ReceiveActorBeginCursorOver; if you override in C++ you must call Super if subclasses or Blueprint overrides are expected to fire.
Signature
ENGINE_API virtual void NotifyActorBeginCursorOver(); Return Type
void Example
Highlight actor on mouse-over C++
void AMyActor::NotifyActorBeginCursorOver()
{
Super::NotifyActorBeginCursorOver();
MeshComponent->SetRenderCustomDepth(true); // Enable outline highlight
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?