728x90
반응형
.h
UFUNCTION()
virtual void OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
UFUNCTION()
virtual void OnOverlapEnd(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
.cpp
->OnComponentBeginOverlap.AddDynamic(this, &AItem::OnOverlapBegin);
->OnComponentEndOverlap.AddDynamic(this, &AItem::OnOverlapEnd);
728x90
반응형
'언리얼 엔진 > C++' 카테고리의 다른 글
언리얼엔진 C++ AnimInstance (0) | 2021.02.10 |
---|---|
FTimerHandle (0) | 2021.02.09 |
AI 따라오게 하기 (0) | 2021.02.09 |
소켓에 컴포넌트 붙이기 (0) | 2021.02.08 |
캐릭터 이동 (0) | 2021.02.07 |