UBlueprintPathsLibrary::HasProjectPersistentDownloadDir
#include "Kismet/BlueprintPathsLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if a writable directory for downloaded data that persists across play sessions is available on the current platform. Equivalent to FPaths::HasProjectPersistentDownloadDir() exposed for Blueprint/Python.
Caveats & Gotchas
- • Always call this before ProjectPersistentDownloadDir() on console/mobile targets — not every platform exposes such a directory, and calling the path getter when this returns false can hand back an unusable or empty path.
- • Availability is platform-dependent, not project-dependent, so the result can differ across build targets for the same project.
Signature
static bool HasProjectPersistentDownloadDir(); Return Type
bool Example
Check before using the persistent download directory C++
if (UBlueprintPathsLibrary::HasProjectPersistentDownloadDir())
{
FString DownloadDir = UBlueprintPathsLibrary::ProjectPersistentDownloadDir();
UE_LOG(LogTemp, Log, TEXT("Persistent download dir: %s"), *DownloadDir);
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?