1UFUNCTION()
2void OnOverlapEnd(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
1// Signature for OnOverlapBegin
2UFUNCTION()
3void OnOverlapBegin(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
4
5// In the constructor make sure to use AddDynamic to handle this function dynamically
6TriggerComp->OnComponentBeginOverlap.AddDynamic(this, &AClass::OnOverlapBegin);
1UFUNCTION()
2void OnOverlapBegin(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);