RealDocs

AActor::ReceiveActorEndCursorOver

function Engine Blueprint Since 4.0
#include "GameFramework/Actor.h"
Access: public Specifiers: UFUNCTIONBlueprintImplementableEvent

Description

Blueprint implementable event called when the mouse cursor moves off this actor, provided mouse-over events are enabled on the player controller.

Caveats & Gotchas

  • The C++ override point is `NotifyActorEndCursorOver()`, not this function. Override that virtual instead of trying to implement ReceiveActorEndCursorOver in C++.
  • This event is not guaranteed to fire if the actor is destroyed while the cursor is over it. Clean up any hover state in EndPlay as well.

Signature

UFUNCTION(BlueprintImplementableEvent, meta=(DisplayName = "ActorEndCursorOver"), Category="Mouse Input")
ENGINE_API void ReceiveActorEndCursorOver();

Return Type

void

Example

Remove highlight on cursor leave C++
void AMyActor::NotifyActorEndCursorOver()
{
	Super::NotifyActorEndCursorOver();
	MeshComponent->SetRenderCustomDepth(false);
}

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.