Files
UnrealEngine/Engine/Plugins/AudioGameplayVolume/Source/AudioGameplayVolumeEditor/Private/AudioGameplayVolumeComponentVisualizers.cpp
2025-05-18 13:04:45 +08:00

21 lines
646 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AudioGameplayVolumeComponentVisualizers.h"
#include "AudioGameplayVolumeComponent.h"
#include "AudioGameplayVolumeProxy.h"
void FAudioGameplayVolumeComponentVisualizer::DrawVisualization(const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI)
{
if (const UAudioGameplayVolumeComponent* AGVComponent = Cast<const UAudioGameplayVolumeComponent>(Component))
{
UAudioGameplayVolumeProxy* Proxy = AGVComponent->GetProxy();
if (!AGVComponent->IsActive() || Proxy == nullptr)
{
return;
}
Proxy->DrawVisualization(Component, View, PDI);
}
}