RealDocs

UBlueprintPathsLibrary::ConvertFromSandboxPath

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

Description

Rewrites a path inside Saved/Sandboxes/InSandboxName back into its equivalent normal engine or project path.

Caveats & Gotchas

  • InSandboxName must match the name that was used when the path was originally created with ConvertToSandboxPath, or the transform silently produces a wrong result.
  • Like ConvertToSandboxPath, this is primarily used by cook and build tooling rather than runtime gameplay code.
  • Does not verify that InPath actually lies inside the named sandbox before stripping it.

Signature

static ENGINE_API FString ConvertFromSandboxPath(const FString& InPath, const FString& InSandboxName);

Parameters

Name Type Description Default
InPath const FString& Path inside the named sandbox to convert back.
InSandboxName const FString& Name of the sandbox the path currently lives under.

Return Type

FString

Example

Recover the real path from a sandboxed cook path C++
FString SandboxPath = TEXT("../../../MyProject/Saved/Sandboxes/WindowsClient/MyAsset.uasset");
FString NormalPath = UBlueprintPathsLibrary::ConvertFromSandboxPath(SandboxPath, TEXT("WindowsClient"));

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.