Files
UnrealEngineUWP/Engine/Source/Editor/ComponentVisualizers/Private/LocalHeightFogComponentVisualizer.cpp
juan canada 2705dcda29 Fixed non unity build error
#rb none
#preflight none
[FYI] sebastien.hillaire

[CL 25475805 by juan canada in ue5-main branch]
2023-05-15 12:51:10 -04:00

26 lines
831 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LocalHeightFogComponentVisualizer.h"
#include "Components/ActorComponent.h"
#include "Components/LocalHeightFogComponent.h"
#include "SceneView.h"
#include "SceneManagement.h"
void FLocalHeightFogComponentVisualizer::DrawVisualization( const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI )
{
if(View->Family->EngineShowFlags.CompositeEditorPrimitives)
{
const ULocalHeightFogComponent* LocalHeightFog = Cast<const ULocalHeightFogComponent>(Component);
if(LocalHeightFog != NULL)
{
FTransform LocalHeightFogTransform = LocalHeightFog->GetComponentTransform();
// Draw local fog volume spherical shape radius
DrawWireSphereAutoSides(PDI, LocalHeightFogTransform, FColor(200, 255, 255), 1.0f, SDPG_World);
}
}
}