UBlueprintPathsLibrary::ShouldSaveToUserDir
#include "Kismet/BlueprintPathsLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns whether the "Saved" directory tree should be rooted in the platform's per-user directory rather than relative to the engine/project install. Reflects FPaths::ShouldSaveToUserDir(), which is generally true for platforms where the install location isn't writable (e.g. shipping builds installed to Program Files).
Caveats & Gotchas
- • The result depends on platform and build configuration, not just a config value — do not assume it's false in editor builds and true in packaged builds; check it explicitly if your save logic depends on it.
- • This affects where EngineSavedDir()/ProjectSavedDir() resolve to; if you're constructing save paths manually instead of using those helpers, you can end up writing to the wrong location on platforms where this returns true.
Signature
static bool ShouldSaveToUserDir(); Return Type
bool Example
Branch save logic on the platform's save-dir policy C++
if (UBlueprintPathsLibrary::ShouldSaveToUserDir())
{
UE_LOG(LogTemp, Log, TEXT("Saves are rooted in the per-user directory on this platform."));
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?