Files
UnrealEngineUWP/Engine/Source/Developer/FunctionalTesting/Classes/FunctionalUIScreenshotTest.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

54 lines
1.1 KiB
C++

// Copyright 1998-2019 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);
protected:
virtual void PrepareTest() override;
virtual void OnScreenshotTakenAndCompared() override;
virtual void RequestScreenshot() override;
protected:
UPROPERTY(EditAnywhere, Category = "UI")
TSubclassOf<UUserWidget> WidgetClass;
UPROPERTY()
UUserWidget* SpawnedWidget;
UPROPERTY(EditAnywhere, Category = "UI")
EWidgetTestAppearLocation WidgetLocation;
UPROPERTY(Transient, DuplicateTransient)
UTextureRenderTarget2D* ScreenshotRT;
};