Files
UnrealEngineUWP/Engine/Source/Developer/FunctionalTesting/Classes/FunctionalUIScreenshotTest.h
patrick boutot bd386a95d6 Hide the debug messages for FunctionalTest.
[FYI] jerome.delattre
#jira UE-138228
#preflight 61d70a18af44b4362812f584

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 18531742 in //UE5/Release-5.0/... via CL 18531753
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18531767 by patrick boutot in ue5-release-engine-test branch]
2022-01-06 10:57:42 -05:00

62 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "ScreenshotFunctionalTestBase.h"
#include "AutomationScreenshotOptions.h"
#include "Blueprint/UserWidget.h"
#include "FunctionalUIScreenshotTest.generated.h"
class UTextureRenderTarget2D;
UENUM()
enum class EWidgetTestAppearLocation
{
Viewport,
PlayerScreen
};
/**
*
*/
UCLASS(Blueprintable, MinimalAPI)
class AFunctionalUIScreenshotTest : public AScreenshotFunctionalTestBase
{
GENERATED_BODY()
public:
AFunctionalUIScreenshotTest(const FObjectInitializer& ObjectInitializer);
public:
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
protected:
virtual void PrepareTest() override;
virtual void OnScreenshotTakenAndCompared() override;
virtual void RequestScreenshot() override;
protected:
UPROPERTY(EditAnywhere, Category = "UI")
TSubclassOf<UUserWidget> WidgetClass;
UPROPERTY()
TObjectPtr<UUserWidget> SpawnedWidget;
UPROPERTY(EditAnywhere, Category = "UI")
EWidgetTestAppearLocation WidgetLocation;
UPROPERTY(Transient, DuplicateTransient)
TObjectPtr<UTextureRenderTarget2D> ScreenshotRT;
UPROPERTY(EditAnywhere, Category = "UI")
bool bHideDebugCanvas;
private:
TOptional<bool> PreviousDebugCanvasVisible;
};