You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Fixes failed check when copy pasting selection of actors that contain SmartObject actors #jira none #rb yohan.stamant #preflight 62aa32de4a335ad67cbe6be6 #robomerge EngineMerge [CL 20685632 by Patrick Enfedaque in ue5-main branch]
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "SmartObjectDebugRenderingComponent.h"
|
|
#include "GameFramework/Actor.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("Game");
|
|
#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()
|
|
USmartObjectSubsystemRenderingComponent* RenderingComponent;
|
|
};
|
|
|