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);