📜  虚幻引擎重叠事件 c++ 代码 - C++ 代码示例

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

代码示例1
public
  ...

  // declare overlap begin function
    UFUNCTION()
    void OnOverlapBegin(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);

    // declare overlap end function
    UFUNCTION()
    void OnOverlapEnd(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);