You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Disable texture streaming - AScreenshotFunctionalTest now reads back from game viewport directly when taking screenshot - AFunctionalUIScreenshotTest now render into a custom render target using FWidgetRenderer so that UI screenshot can be captured at fixed size - Add a new class, AScreenshotFunctionalTestBase, that handles screenshot common functions. AScreenshotFunctionalTest and AFunctionalUIScreenshotTest now derive from it #rb Chris.Bunner #codereview Chris.Bunner #lockdown nick.penwarden [CL 3647910 by Jian Ru in Main branch]
34 lines
839 B
C++
34 lines
839 B
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "ScreenshotFunctionalTestBase.h"
|
|
#include "AutomationScreenshotOptions.h"
|
|
|
|
#include "ScreenshotFunctionalTest.generated.h"
|
|
|
|
class FAutomationTestScreenshotEnvSetup;
|
|
|
|
/**
|
|
* No UI
|
|
*/
|
|
UCLASS(Blueprintable)
|
|
class FUNCTIONALTESTING_API AScreenshotFunctionalTest : public AScreenshotFunctionalTestBase
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
AScreenshotFunctionalTest(const FObjectInitializer& ObjectInitializer);
|
|
|
|
// Tests relying on temporal effects can force a camera cut to flush stale data
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Camera", SimpleDisplay)
|
|
bool bCameraCutOnScreenshotPrep;
|
|
|
|
protected:
|
|
virtual void PrepareTest() override;
|
|
|
|
virtual void RequestScreenshot() override;
|
|
};
|