📜  oncomponentendoverlap ue4 c++代码示例

📅  最后修改于: 2022-03-11 14:44:45.716000             🧑  作者: Mango

代码示例1
// 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);