You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "FunctionalTest.h"
|
|
#include "AutomationScreenshotOptions.h"
|
|
|
|
#include "ScreenshotFunctionalTest.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS(Blueprintable, MinimalAPI)
|
|
class AScreenshotFunctionalTest : public AFunctionalTest
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
AScreenshotFunctionalTest(const FObjectInitializer& ObjectInitializer);
|
|
|
|
#if WITH_EDITOR
|
|
virtual bool CanEditChange(const UProperty* InProperty) const override;
|
|
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
|
#endif
|
|
|
|
protected:
|
|
virtual void PrepareTest() override;
|
|
virtual bool IsReady_Implementation() override;
|
|
virtual void StartTest() override;
|
|
|
|
void OnScreenshotTakenAndCompared();
|
|
void SetupVisualizeBuffer();
|
|
|
|
protected:
|
|
|
|
UPROPERTY()
|
|
class UCameraComponent* ScreenshotCamera;
|
|
|
|
UPROPERTY(EditAnywhere, Category="Screenshot", SimpleDisplay)
|
|
FAutomationScreenshotOptions ScreenshotOptions;
|
|
};
|