Files
henrik karlsson 9183978e29 [Engine/Plugins]
* Removed includes (using IWYU) in private files

#preflight 63c79978ac35a0e9dabbe408
#rb none

[CL 23770038 by henrik karlsson in ue5-main branch]
2023-01-19 00:48:07 -05:00

50 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SmartObjectDebugRenderingComponent.h"
#include "SmartObjectSubsystemRenderingActor.generated.h"
/** Rendering component for SmartObjectRendering actor. */
UCLASS(ClassGroup = Debug, NotBlueprintable, NotPlaceable)
class SMARTOBJECTSMODULE_API USmartObjectSubsystemRenderingComponent : public USmartObjectDebugRenderingComponent
{
GENERATED_BODY()
public:
explicit USmartObjectSubsystemRenderingComponent(const FObjectInitializer& ObjectInitializer)
: USmartObjectDebugRenderingComponent(ObjectInitializer)
{
#if UE_ENABLE_DEBUG_DRAWING
ViewFlagName = TEXT("SmartObjects");
#endif
}
protected:
virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
#if UE_ENABLE_DEBUG_DRAWING
virtual void DebugDraw(FDebugRenderSceneProxy* DebugProxy) override;
virtual void DebugDrawCanvas(UCanvas* Canvas, APlayerController*) override;
#endif
};
UCLASS(Transient, NotBlueprintable, NotPlaceable)
class SMARTOBJECTSMODULE_API ASmartObjectSubsystemRenderingActor : public AActor
{
GENERATED_BODY()
public:
ASmartObjectSubsystemRenderingActor();
#if WITH_EDITOR
virtual bool ShouldExport() override { return false; }
virtual bool CanDeleteSelectedActor(FText& OutReason) const override { return false; }
#endif
private:
UPROPERTY()
TObjectPtr<USmartObjectSubsystemRenderingComponent> RenderingComponent;
};