21 lines
646 B
C++
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);
|
|
}
|
|
}
|