FAutomationEditorCommonUtils

[FAutomationEditorCommonUtils](API\Editor\UnrealEd\Tests\FAutomationEditorCommonUtils).

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Tests/AutomationEditorCommon.h

Include

#include "Tests/AutomationEditorCommon.h"

Syntax

class FAutomationEditorCommonUtils

Remarks

Functions

Name Description

Public function Static

void

 

ApplyCustomFactorySetting

(
    UObject* InObject,
    TArray< FString >& PropertyChain,
    const FString& Value
)

Applies settings to an object by finding UProperties by name and calling ImportText

Public function Static

void

 

ApplyCustomFactorySettings

(
    UFactory* InFactory,
    const TArray< FImportFactorySetting...
)

Applies the custom factory settings

Public function Static

void

 

CollectGameContentTests

(
    TArray< FString >& OutBeautifiedNa...,
    TArray< FString >& OutTestCommands
)

Generates a list of assets from the GAME by a specific type.

Public function Static

void

 

CollectGameContentTestsByClass

(
    UClass* Class,
    bool bRecursiveClass,
    TArray< FString >& OutBeautifiedNa...,
    TArray< FString >& OutTestCommands
)

Generates a list of assets from the GAME by a specific type.

Public function Static

void

 

CollectTestsByClass

(
    UClass* Class,
    TArray< FString >& OutBeautifiedNa...,
    TArray< FString >& OutTestCommands
)

Generates a list of assets from the ENGINE and the GAME by a specific type.

Public function Static

FString

 

ConvertPackagePathToAssetPath

(
    const FString& PackagePath
)

Converts a package path to an asset path

Public function Static

void

 

CreateArrayFromFile

(
    const FString& InFileLocation,
    TArray< FString >& OutArray
)

Returns the contents of a text file as an array of FString.

Public function Static

UWorld *

 

CreateNewMap()

Creates a new map for editing. Also clears editor tools that could cause issues when changing maps

Public function Static

FAssetData

 

GetAssetDataFromPackagePath

(
    const FString& PackagePath
)

Gets the asset data from a package path

Public function Static

UClass *

 

GetFactoryClassForType

(
    const FString& AssetExtension
)

Gets a factory class based off an asset file extension

Public function Static

void

 

GetLaunchOnDeviceID

(
    FString& OutDeviceID,
    const FString& InMapName,
    const FString& InDeviceName
)

Returns the DeviceID 'Platform' Searches the automation preferences for the platform to use.

Public function Static

void

 

GetLaunchOnDeviceID

(
    FString& OutDeviceID,
    const FString& InMapName
)

Returns the first DeviceID 'Platform' Searches the automation preferences for the platform to use.

Public function Static

UObject *...

 

ImportAssetUsingFactory

(
    UFactory* ImportFactory,
    const FString& ObjectName,
    const FString& PackageName,
    const FString& ImportPath
)

Imports an object using a given factory

Public function Static

bool

 

IsArchiveWriteable

(
    const FString& InFilePath,
    const FArchive* InArchiveName
)

Returns true if the archive/file can be written to otherwise false.

Public function Static

float

 

LargestValueInFloatArray

(
    const TArray< float >& InFloatArra...
)

Returns the largest value from an array of float numbers.

Public function Static

void

 

LoadMap

(
    const FString& MapName
)

Loads the map specified by an automation test

Public function Static

void

 

NullReferencesToObject

(
    UObject* InObject
)

Nulls out references to a given object

Public function Static

void

 

RunPIE

(
    float PIEDuration
)

Run PIE

Public function Static

bool

 

SetOrthoViewportView

(
    const FVector& ViewLocation,
    const FRotator& ViewRotation
)

Sets the first found ortho viewport camera to the desired location and rotation.

Public function Static

float

 

TotalFromFloatArray

(
    const TArray< float >& InFloatArra...,
    bool bisAveragedInstead
)

Returns the sum of the numbers available in an array of float.

Public function Static

void

 

WriteToTextFile

(
    const FString& InTestName,
    const FString& InTestItem,
    const FString& InFileName,
    const float& InEntry,
    const FString& Delimiter
)

Writes a number to a text file.

Writes a number to a text file.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss