Thank you for reply @ZenLeviathan
I managed to get it working, sort of …
What I did was create a custom PlayerController for my PlayerPawn. Then in that controller I added
bShowMouseCursor = true;
bEnableMouseOverEvents = true;
So now mouseover works. However, as I’ve read it will only work on StaticMesh ? I tried to add this to SkeletalMesh and that does not trigger mouseover ?
SkeletalMeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("SkeletalMesh"));
SkeletalMeshComponent->SetupAttachment(CapsuleComponent);
SkeletalMeshComponent->OnBeginCursorOver.AddDynamic(this, &AUnitBase::OnMouseOver);
Is there any way I can make it work on SkeletalMesh ?
I have this dragon, which is animated and that I would like to have mouseover effect on. How can I make it so that mouseover works on that dragon ?
I made BluePrint from this C++ class and inside BluePrint, when I look at SkeletalMesh component, there seems to be possible to register mouse events. I added one like so
However this does not trigger.