Sometimes, we don’t need all these parameters when we are checking the overlap. If we don’t we can simply override two functions:
virtual void NotifyActorBeginOverlap(AActor* OtherActor) override;
virtual void NotifyActorEndOverlap(AActor* OtherActor) override;
Both of them can be found inside actor.h header and they are public functions. Then you just implement them in .cpp
void APPlatformTrigger::NotifyActorBeginOverlap(AActor * OtherActor)
{
UE_LOG(LogTemp, Warning, TEXT("Overlapped"));
}
void APPlatformTrigger::NotifyActorEndOverlap(AActor * OtherActor)
{
UE_LOG(LogTemp, Warning, TEXT("End Overlapped"));
}
Cheers.