I have enabled bEnableMouseOverEvents in my controller, and I have a c++ class deriving from AActor, that defines two UFUNCTIONs - one for mouse over and one for mouse out event as below:
UFUNCTION()
void OnMouseOver(AActor* TouchedActor);
UFUNCTION()
void OnMouseOut(AActor* TouchedActor);
In constructor I subscribe to events as below:
OnBeginCursorOver.AddDynamic(this, &ATP_Tower::OnMouseOver);
OnEndCursorOver.AddDynamic(this, &ATP_Tower::OnMouseOut);
For some strange reason the OnMouseOver function is called, but OnMouseOut isn’t. Anyone dealt with such issues before?