2021-09-28 13:33:17 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Components/PrimitiveComponent.h"
|
|
|
|
|
#include "SmartObjectRenderingComponent.generated.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FPrimitiveSceneProxy;
|
|
|
|
|
|
|
|
|
|
UCLASS(hidecategories = (Object, LOD, Lighting, VirtualTexture, Transform, HLOD, Collision, TextureStreaming, Mobile, Physics, Tags, AssetUserData, Activation, Cooking, Rendering), editinlinenew, meta = (BlueprintSpawnableComponent))
|
|
|
|
|
class SMARTOBJECTSMODULE_API USmartObjectRenderingComponent : public UPrimitiveComponent
|
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
public:
|
|
|
|
|
USmartObjectRenderingComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
|
|
|
|
|
|
|
|
|
|
//~ Begin UPrimitiveComponent Interface
|
|
|
|
|
virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
|
|
|
|
|
virtual bool ShouldRecreateProxyOnUpdateTransform() const override { return true; }
|
|
|
|
|
//~ End UPrimitiveComponent Interface
|
|
|
|
|
|
|
|
|
|
//~ Begin USceneComponent Interface
|
|
|
|
|
virtual FBoxSphereBounds CalcBounds(const FTransform &LocalToWorld) const override;
|
|
|
|
|
//~ End USceneComponent Interface
|
|
|
|
|
|
|
|
|
|
#if WITH_EDITOR
|
|
|
|
|
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
|
|
|
|
#endif // WITH_EDITOR
|
|
|
|
|
};
|
2023-01-25 02:42:36 -05:00
|
|
|
|
|
|
|
|
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#endif
|