2018-12-14 13:44:01 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2016-09-21 10:07:18 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-11-23 15:48:37 -05:00
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
2017-09-18 10:40:18 -04:00
|
|
|
#include "ScreenshotFunctionalTestBase.h"
|
2016-10-05 13:23:01 -04:00
|
|
|
#include "AutomationScreenshotOptions.h"
|
2016-09-21 10:07:18 -04:00
|
|
|
|
|
|
|
|
#include "ScreenshotFunctionalTest.generated.h"
|
|
|
|
|
|
2017-09-18 10:40:18 -04:00
|
|
|
class FAutomationTestScreenshotEnvSetup;
|
|
|
|
|
|
2016-09-21 10:07:18 -04:00
|
|
|
/**
|
2017-09-18 10:40:18 -04:00
|
|
|
* No UI
|
2016-09-21 10:07:18 -04:00
|
|
|
*/
|
2017-08-11 12:43:42 -04:00
|
|
|
UCLASS(Blueprintable)
|
2017-09-18 10:40:18 -04:00
|
|
|
class FUNCTIONALTESTING_API AScreenshotFunctionalTest : public AScreenshotFunctionalTestBase
|
2016-09-21 10:07:18 -04:00
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
AScreenshotFunctionalTest(const FObjectInitializer& ObjectInitializer);
|
|
|
|
|
|
2017-12-06 14:51:13 -05:00
|
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
|
|
|
|
|
|
|
|
// Tests not relying on temporal effects can force a camera cut to flush stale data
|
2017-08-24 15:38:57 -04:00
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Camera", SimpleDisplay)
|
|
|
|
|
bool bCameraCutOnScreenshotPrep;
|
|
|
|
|
|
2016-09-21 10:07:18 -04:00
|
|
|
protected:
|
|
|
|
|
virtual void PrepareTest() override;
|
2017-09-18 10:40:18 -04:00
|
|
|
virtual void RequestScreenshot() override;
|
2016-11-23 15:48:37 -05:00
|
|
|
};
|