You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* For thumbnail renderers, the prototype of RenderViewFamily (which is called by all the types of thumbnail renderers) has been changed to take a non-const FSceneView* parameter (so that SetupView can be called on it) and the various GetView functions have been renamed CreateView since it more accurately depicts what the functions do (plus they return the non-const view they've created) * UGameViewportClient::Draw was calling SetupViewFamily but not SetupView * Made sure FSceneRenderer::ViewExtensionPreRender_RenderThread is called right before RenderThreadBegin for all code paths * Made sure view extensions are gathered for all code paths rendering a view family Note: BeginRenderViewFamily (i.e. game-thread), PostRenderView_RenderThread and PostRenderViewFamily_RenderThread are still not called on the non-standard code paths #jira UE-140273, UE-140489, UE-139067, UE-140425 #rb sebastien.lussier, rob.srinivasiah #tests EngineTests (screenshots), editor #preflight 61fd216ae17efe76d1b49a2d #lockdown mihnea.balta #ROBOMERGE-AUTHOR: jonathan.bard #ROBOMERGE-SOURCE: CL 18884880 in //UE5/Release-5.0/... via CL 18884941 via CL 18885221 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042) [CL 18885607 by jonathan bard in ue5-main branch]
28 lines
758 B
C++
28 lines
758 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ThumbnailHelpers.h"
|
|
|
|
class AGeometryCacheActor;
|
|
class UGeometryCache;
|
|
|
|
class FGeometryCacheThumbnailScene : public FThumbnailPreviewScene
|
|
{
|
|
public:
|
|
/** Constructor */
|
|
FGeometryCacheThumbnailScene();
|
|
|
|
/** Sets the static mesh to use in the next CreateView() */
|
|
void SetGeometryCache(UGeometryCache* GeometryCache);
|
|
|
|
protected:
|
|
// FThumbnailPreviewScene implementation
|
|
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 */
|
|
AGeometryCacheActor* PreviewActor;
|
|
};
|