Navigation
API > API/Plugins > API/Plugins/ToolsetRegistry
Provides static access to the globally active FileSandbox instance.
| Name | FGlobalSandbox |
| Type | class |
| Header File | /Engine/Plugins/Experimental/ToolsetRegistry/Source/ToolsetRegistry/Public/ToolsetRegistry/SandboxLibrary.h |
| Include Path | #include "ToolsetRegistry/SandboxLibrary.h" |
Syntax
class FGlobalSandbox
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Discard () |
Discards all changes in the active sandbox. | ToolsetRegistry/SandboxLibrary.h | |
static bool DiscardFiles
(
const TArray< FString >& Files |
Discards only the specified files in the active sandbox. | ToolsetRegistry/SandboxLibrary.h | |
| Creates a new sandbox or resumes an existing one by name. | ToolsetRegistry/SandboxLibrary.h | ||
static FString GetActiveName() |
Returns the name of the active sandbox, or an empty string if none is active. | ToolsetRegistry/SandboxLibrary.h | |
static TArray< UE::FileSandboxCore::FSandboxedFileChangeInfo > GetChanges () |
Returns the list of files changed in the active sandbox. | ToolsetRegistry/SandboxLibrary.h | |
static bool IsActive() |
Returns whether a sandbox is currently active. | ToolsetRegistry/SandboxLibrary.h | |
static bool Leave() |
Leaves the active sandbox without deleting it. The sandbox's files are preserved. | ToolsetRegistry/SandboxLibrary.h | |
| Persists sandbox changes to the real filesystem. | ToolsetRegistry/SandboxLibrary.h |