Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

oncomponentbeginoverlap ue4 c++

// Signature for OnOverlapBegin
UFUNCTION()
void OnOverlapBegin(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);

// In the constructor make sure to use AddDynamic to handle this function dynamically
TriggerComp->OnComponentBeginOverlap.AddDynamic(this, &AClass::OnOverlapBegin);
 
PREVIOUS NEXT
Tagged: #oncomponentbeginoverlap
ADD COMMENT
Topic
Name
4+5 =