[公式ドキュメントが古い] C++限定 OnComponentBeginOverlapの引数変更

アンリアル エンジン 4 ドキュメント > ゲームプレイ > クラス作成の基本 > C++ 限定

4.3のUpdateでOnComponentBeginOverlapの引数が変更になっている。
https://answers.unrealengine.com/questions/72354/oncomponentbeginoverlap-doesnt-work-after-update-t.html

【4.3前】
void OnBeginOverlap(AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);

【4.3】
void OnBeginOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult & SweepResult);

公式ドキュメントではOnComponentBeginOverlapとOnComponentEndOverlapで同じ関数をアタッチしているので、
4.3以降のUnrealEngineではそれぞれ別々にアタッチする関数を設けないとコンパイルできない。