From e773b1f1d92023f7b409e0b33a1ce8f36d9b250a Mon Sep 17 00:00:00 2001 From: Viktor Blomme Date: Wed, 18 Jun 2025 15:00:55 +0200 Subject: [PATCH] Remove trigger box --- .../Private/Gameplay/GBFVolumeTriggerActions.cpp | 6 ------ .../Private/Gameplay/GBFVolumeTriggerActions.h | 4 ---- 2 files changed, 10 deletions(-) diff --git a/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.cpp b/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.cpp index a909d2e1..2b39a765 100644 --- a/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.cpp +++ b/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.cpp @@ -2,15 +2,9 @@ #include "GBFVolumeTriggerAction.h" -#include - AGBFVolumeTriggerActions::AGBFVolumeTriggerActions() { PrimaryActorTick.bCanEverTick = false; - - BoxCollision = CreateDefaultSubobject< UBoxComponent >( TEXT( "BoxCollision" ) ); - BoxCollision->SetCollisionProfileName( TEXT( "OverlapOnlyPawn" ) ); - RootComponent = BoxCollision; } void AGBFVolumeTriggerActions::NotifyActorBeginOverlap( AActor * other_actor ) diff --git a/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.h b/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.h index 612144e3..cbd107ad 100644 --- a/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.h +++ b/Source/GameBaseFramework/Private/Gameplay/GBFVolumeTriggerActions.h @@ -6,7 +6,6 @@ #include "GBFVolumeTriggerActions.generated.h" class UGBFVolumeTriggerAction; -class UBoxComponent; UCLASS() class GAMEBASEFRAMEWORK_API AGBFVolumeTriggerActions final : public AActor @@ -20,9 +19,6 @@ class GAMEBASEFRAMEWORK_API AGBFVolumeTriggerActions final : public AActor void NotifyActorEndOverlap( AActor * other_actor ) override; private: - UPROPERTY( BlueprintReadOnly, VisibleAnywhere, meta = ( AllowPrivateAccess ) ) - TObjectPtr< UBoxComponent > BoxCollision; - UPROPERTY( Instanced, EditAnywhere ) TArray< TObjectPtr< UGBFVolumeTriggerAction > > TriggerActions; };