// 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(); protected: UPROPERTY() class UCameraComponent* ScreenshotCamera; UPROPERTY(EditAnywhere, Category="Screenshot", SimpleDisplay) FAutomationScreenshotOptions ScreenshotOptions; };