Files
UnrealEngineUWP/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectRenderingComponent.h

33 lines
1.2 KiB
C
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#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
};