RealDocs

UBlueprintPathsLibrary::SandboxesDir

function Engine Blueprint Since 4.0
#include "Kismet/BlueprintPathsLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns the directory the engine stores sandbox output in, used by tools like cooking and staging to isolate their output trees. Equivalent to FPaths::SandboxesDir() exposed for Blueprint/Python.

Caveats & Gotchas

  • Sandbox output is tooling-internal (e.g. cooked build staging areas) — gameplay code has essentially no reason to read or write here.
  • Use ConvertToSandboxPath()/ConvertFromSandboxPath() to translate individual file paths into and out of a named sandbox rather than manually concatenating onto this directory.

Signature

static FString SandboxesDir();

Return Type

FString

Example

Locate the sandboxes directory C++
FString Sandboxes = UBlueprintPathsLibrary::SandboxesDir();
UE_LOG(LogTemp, Log, TEXT("Sandboxes dir: %s"), *Sandboxes);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.