Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Tests
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Tests/AutomationCommon.h |
| Include | #include "Tests/AutomationCommon.h" |
Syntax
struct FScopedTestEnvironment
Remarks
Utility for setting and management of temporary CVars Will handle restoring the Console Variables (CVars) back to the original state on destruction.
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Restores all set Console Variables back to the original value |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FScopedTestEnvironment > | Get () |
Returns a shared pointer to current instance of the scoped test environment. | |
| void | Restore () |
Restores all set Console Variables back to the original value | |
| void | SetConsoleVariableValue
(
const FString& ConsoleVariableName, |
Sets a Console Variable to the specified value. | |
| bool | TryGetConsoleVariableValue
(
const FString& ConsoleVariableName, |
Gets the current overridden value for the specified Console Variable |
Constants
| Name | Description |
|---|---|
| EnvironmentInstance |