Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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);
 
PREVIOUS NEXT
Tagged: #oncomponentendoverlap
ADD COMMENT
Topic
Name
3+5 =