AFunctionalUIScreenshotTest

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

FunctionalTesting

Header

/Engine/Source/Developer/FunctionalTesting/Classes/FunctionalUIScreenshotTest.h

Include

#include "FunctionalUIScreenshotTest.h"

Syntax

class AFunctionalUIScreenshotTest : public AScreenshotFunctionalTestBase

Variables

Name Description

Protected variable

bool

 

bHideDebugCanvas

Protected variable

TObjectPtr< UTe...

 

ScreenshotRT

Protected variable

TObjectPtr< UUs...

 

SpawnedWidget

Protected variable

TSubclassOf< UU...

 

WidgetClass

Protected variable

EWidgetTestAppe...

 

WidgetLocation

Constructors

Name Description

Public function

AFunctionalUIScreenshotTest

(
    const FObjectInitializer& ObjectIn...
)

Overridden from AScreenshotFunctionalTestBase

Name Description

Protected function Virtual

void

 

OnScreenshotTakenAndCompared()

Call RestoreViewport and finish this test.

Protected function Virtual

void

 

RequestScreenshot()

Doesn't actually request in base class. It simply register OnScreenshotCaptured.

Overridden from AFunctionalTest

Name Description

Protected function Virtual

void

 

PrepareTest()

Set player view target to screenshot camera and call PrepareForScreenshot.

Overridden from AActor

Name Description

Public function Virtual

void

 

EndPlay

(
    const EEndPlayReason::Type EndPlayR...
)

Overridable function called whenever this actor is being removed from a level