// 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(Component)) { UAudioGameplayVolumeProxy* Proxy = AGVComponent->GetProxy(); if (!AGVComponent->IsActive() || Proxy == nullptr) { return; } Proxy->DrawVisualization(Component, View, PDI); } }