Files
UnrealEngine/Engine/Plugins/Runtime/HairStrands/Source/HairStrandsEditor/Private/GroomAssetThumbnailScene.h
2025-05-18 13:04:45 +08:00

28 lines
870 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ThumbnailHelpers.h"
#include "UObject/ObjectPtr.h"
class UGroomAsset;
class AGroomActor;
class FGroomAssetThumbnailScene : public FThumbnailPreviewScene
{
public:
/** Constructor */
HAIRSTRANDSEDITOR_API FGroomAssetThumbnailScene();
/** Sets the groom asset to use in the next CreateView() */
HAIRSTRANDSEDITOR_API void SetGroomAsset(UGroomAsset* GroomAsset);
HAIRSTRANDSEDITOR_API void CleanupSceneAfterThumbnailRender();
protected:
// FThumbnailPreviewScene implementation
HAIRSTRANDSEDITOR_API virtual void GetViewMatrixParameters(const float InFOVDegrees, FVector& OutOrigin, float& OutOrbitPitch, float& OutOrbitYaw, float& OutOrbitZoom) const override;
private:
/** The static mesh actor used to display all static mesh thumbnails */
TObjectPtr<AGroomActor> PreviewActor;
};