Destroy DebugCamera on BeginPlayu

This commit is contained in:
baz 2024-06-06 03:03:01 +01:00
parent 21fa28b640
commit 3ed07b6f72
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ void ACameraVolume::BeginPlay()
Super::BeginPlay(); Super::BeginPlay();
this->OnActorBeginOverlap.AddDynamic(this, &ACameraVolume::OnBeginOverlap); this->OnActorBeginOverlap.AddDynamic(this, &ACameraVolume::OnBeginOverlap);
this->OnActorEndOverlap.AddDynamic(this, &ACameraVolume::OnEndOverlap); this->OnActorEndOverlap.AddDynamic(this, &ACameraVolume::OnEndOverlap);
DebugCamera->DestroyComponent();
} }
void ACameraVolume::Tick(float DeltaSeconds) void ACameraVolume::Tick(float DeltaSeconds)