You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Before: 3548 unity files Total CPU Time: 47343.578125 s Total time in Parallel executor: 494.60 seconds After: 3445 unity files Total CPU Time: 46044.671875 s Total time in Parallel executor: 468.51 seconds #jira #preflight 63336159b20e73a098b7f24f [CL 22218213 by bryan sefcik in ue5-main branch]
55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SmartObjectSubsystemRenderingActor.h"
|
|
|
|
#include "SmartObjectDebugSceneProxy.h"
|
|
#include "SmartObjectSubsystem.h"
|
|
#include "Debug/DebugDrawService.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(SmartObjectSubsystemRenderingActor)
|
|
|
|
//----------------------------------------------------------------------//
|
|
// USmartObjectSubsystemRenderingComponent
|
|
//----------------------------------------------------------------------//
|
|
FBoxSphereBounds USmartObjectSubsystemRenderingComponent::CalcBounds(const FTransform& LocalToWorld) const
|
|
{
|
|
if (const USmartObjectSubsystem* Subsystem = UWorld::GetSubsystem<USmartObjectSubsystem>(GetWorld()))
|
|
{
|
|
if (const ASmartObjectCollection* MainCollection = Subsystem->GetMainCollection())
|
|
{
|
|
return MainCollection->GetBounds();
|
|
}
|
|
}
|
|
return FBox(ForceInit);
|
|
}
|
|
|
|
#if UE_ENABLE_DEBUG_DRAWING
|
|
void USmartObjectSubsystemRenderingComponent::DebugDraw(FDebugRenderSceneProxy* DebugProxy)
|
|
{
|
|
if (const USmartObjectSubsystem* Subsystem = UWorld::GetSubsystem<USmartObjectSubsystem>(GetWorld()))
|
|
{
|
|
Subsystem->DebugDraw(DebugProxy);
|
|
}
|
|
}
|
|
|
|
void USmartObjectSubsystemRenderingComponent::DebugDrawCanvas(UCanvas* Canvas, APlayerController* PlayerController)
|
|
{
|
|
if (const USmartObjectSubsystem* Subsystem = UWorld::GetSubsystem<USmartObjectSubsystem>(GetWorld()))
|
|
{
|
|
Subsystem->DebugDrawCanvas(Canvas, PlayerController);
|
|
}
|
|
}
|
|
#endif // UE_ENABLE_DEBUG_DRAWING
|
|
|
|
|
|
//----------------------------------------------------------------------//
|
|
// ASmartObjectSubsystemRenderingActor
|
|
//----------------------------------------------------------------------//
|
|
ASmartObjectSubsystemRenderingActor::ASmartObjectSubsystemRenderingActor()
|
|
{
|
|
RenderingComponent = CreateDefaultSubobject<USmartObjectSubsystemRenderingComponent>(TEXT("RenderingComp"));
|
|
RootComponent = RenderingComponent;
|
|
}
|
|
|
|
|