oncomponentendoverlap ue4 c++ code example
Example: oncomponentendoverlap ue4 c++
// Signature for OnOverlapEnd
UFUNCTION()
void OnOverlapEnd(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
// In the constructor make sure to use AddDynamic to handle this function dynamically
TriggerComp->OnComponentEndOverlap.AddDynamic(this, &AClass::OnOverlapEnd);