You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
46 lines
2.3 KiB
C++
46 lines
2.3 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Engine/LatentActionManager.h"
|
|
#include "Kismet/BlueprintFunctionLibrary.h"
|
|
#include "AutomationScreenshotOptions.h"
|
|
|
|
#include "AutomationBlueprintFunctionLibrary.generated.h"
|
|
|
|
class ACameraActor;
|
|
|
|
UCLASS()
|
|
class FUNCTIONALTESTING_API UAutomationBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
public:
|
|
static bool TakeAutomationScreenshotInternal(const FString& Name, FAutomationScreenshotOptions Options);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "Automation", meta = (Latent, HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject", LatentInfo = "LatentInfo", Name = "" ))
|
|
static void TakeAutomationScreenshot(UObject* WorldContextObject, FLatentActionInfo LatentInfo, const FString& Name, const FAutomationScreenshotOptions& Options);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "Automation", meta = (Latent, HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject", LatentInfo = "LatentInfo", NameOverride = "" ))
|
|
static void TakeAutomationScreenshotAtCamera(UObject* WorldContextObject, FLatentActionInfo LatentInfo, ACameraActor* Camera, const FString& NameOverride, const FAutomationScreenshotOptions& Options);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "Automation", meta = ( Latent, HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject", LatentInfo = "LatentInfo", NameOverride = "" ))
|
|
static void TakeAutomationScreenshotOfUI(UObject* WorldContextObject, FLatentActionInfo LatentInfo, const FString& Name, const FAutomationScreenshotOptions& Options);
|
|
|
|
//UFUNCTION(BlueprintCallable, Category = "Automation|Performance")
|
|
//static void BeginPerformanceCapture();
|
|
|
|
//UFUNCTION(BlueprintCallable, Category = "Automation|Performance")
|
|
//static void EndPerformanceCapture();
|
|
|
|
UFUNCTION(BlueprintPure, Category="Automation")
|
|
static bool AreAutomatedTestsRunning();
|
|
|
|
UFUNCTION(BlueprintPure, Category="Automation")
|
|
static FAutomationScreenshotOptions GetDefaultScreenshotOptionsForGameplay(EComparisonTolerance Tolerance = EComparisonTolerance::Low);
|
|
|
|
UFUNCTION(BlueprintPure, Category="Automation")
|
|
static FAutomationScreenshotOptions GetDefaultScreenshotOptionsForRendering(EComparisonTolerance Tolerance = EComparisonTolerance::Low);
|
|
};
|