![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AutomationCommon.h>
Public Member Functions | |
| virtual ENGINE_API | ~FTestWorldWrapper () |
| UWorld * | GetTestWorld () const |
| virtual ENGINE_API bool | CreateTestWorld (EWorldType::Type WorldType) |
| virtual ENGINE_API bool | DestroyTestWorld (bool bForceGarbageCollect) |
| virtual ENGINE_API bool | BeginPlayInTestWorld () |
| virtual ENGINE_API bool | TickTestWorld (float DeltaTime=0.01f) |
| virtual ENGINE_API bool | EndPlayInTestWorld () |
| virtual ENGINE_API void | ReportFailure (const TCHAR *ErrorMessage) |
| virtual ENGINE_API void | ClearFailureState () |
| virtual ENGINE_API bool | HasFailed () const |
| virtual ENGINE_API void | AppendErrorMessages (TArray< FString > &OutErrorMessages) const |
| virtual ENGINE_API void | ForwardErrorMessages (FAutomationTestBase *AutomationTest) const |
Protected Attributes | |
| UWorld * | TestWorld = nullptr |
| uint64 | CachedFrameCounter = 0 |
| TArray< FString > | FailureErrors |
Utility class for creating and destroying a temporary test world, can be used for automation or performance testing. This can be used with any test framework but has utility functions for FAutomationTestBase.
|
virtual |
This will properly shut down and destroy the test world as needed
Gets the actual error messages for reporting to the automation framework
|
virtual |
Starts play in the test world to simulate gameplay
|
virtual |
Clears any failures and initial state
|
virtual |
Creates a world of the appropriate world type, returns false on failure
Destroys the test world and handles any required cleanup
|
virtual |
Stops play properly
|
virtual |
Reports error messages to a passed in automation test
|
inline |
Gets the wrapped world, can be null
|
virtual |
Returns true if there are any errors that should stop further execution
Registers an error message and marks test as failed, called by the functions above
Ticks the test world for one frame, defaults to 100 fps
|
protected |
|
protected |
|
protected |