UBlueprintPathsLibrary::EngineVersionAgnosticUserDir
#include "Kismet/BlueprintPathsLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the root directory for user-specific engine files that is shared across engine versions, unlike EngineUserDir(). Useful for caching data (e.g. derived data, editor preferences) that should survive an engine upgrade.
Caveats & Gotchas
- • Because this path is shared across engine versions, cached data written here must remain forward/backward compatible or include its own versioning — the engine will not isolate it for you the way EngineUserDir() does.
- • Always writable, like EngineUserDir(), but do not assume the directory contents are exclusive to any single project or engine build.
Signature
static FString EngineVersionAgnosticUserDir(); Return Type
FString Example
Store a preference that should survive engine upgrades C++
FString UserDir = UBlueprintPathsLibrary::EngineVersionAgnosticUserDir();
FString PrefsFile = UserDir / TEXT("MyTool/Preferences.ini"); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?