You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #preflight none [FYI] sebastien.hillaire [CL 25475805 by juan canada in ue5-main branch]
26 lines
831 B
C++
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
|