Compare commits

...

2 Commits

Author SHA1 Message Date
baz 3ed07b6f72 Destroy DebugCamera on BeginPlayu 2024-06-06 03:03:01 +01:00
baz 21fa28b640 Replace Remove with DequeueCameraVolume 2024-06-06 03:02:49 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ void UCameraManagerSubsystem::RemoveCameraVolume(ACameraVolume* CameraVolume)
{
if (CameraVolume == CurrentCameraVolume)
{
CameraVolumeQueue.Remove(CameraVolume);
DequeueCameraVolume(CameraVolume);
CurrentCameraVolume->SetIsActive(false);
CurrentCameraVolume = nullptr;
}

View File

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