So I am receiving an actor via a FHitResult with GetActor().
I want to call a function, that is public inside that Actor, how can I do it?
In the .h:
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
void Show();
In the .cpp of a different actor:
GWorld->LineTraceSingleByChannel(TraceResult,
Start,
End,
ECC_Camera,
TraceParams);
TraceResult.GetActor()->Show();