Navigation
API > API/Plugins > API/Plugins/FileSandboxCore > API/Plugins/FileSandboxCore/ISandboxManager
Description
Puts the engine into a sandbox: applies the state from a pre-existing sandbox to any open assets.
Any assets that are currently open / in-memory will be hot-reloaded. Effectively, this means that their file content will be re-loaded but from the sandboxed version of the .uasset file.
Tip: If you don't care about the specifics of potential errors, you can write if (ISandboxInstance* Instance = Manager->LoadNamedSandbox(...)).
Do not keep any raw reference to ISandboxInstance as it turns stale when the sandbox is shutdown.
| Name | LoadNamedSandbox |
| Type | function |
| Header File | /Engine/Plugins/Developer/Sandbox/FileSandbox/Source/FileSandboxCore/Public/ISandboxManager.h |
| Include Path | #include "ISandboxManager.h" |
| Source | /Engine/Plugins/Developer/Sandbox/FileSandbox/Source/FileSandboxCore/Private/ISandboxManager.cpp |
FLoadSandboxResult LoadNamedSandbox
(
const FLoadSandboxByNameArgs & InArgs
)
See Also
-
FWeakSandboxPtr
-
GetGlobalSandboxInstance.