RealDocs

UBlueprintPathsLibrary::ProjectPersistentDownloadDir

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

Description

Returns the writable directory for downloaded data that persists across play sessions. Equivalent to FPaths::ProjectPersistentDownloadDir() exposed for Blueprint/Python.

Caveats & Gotchas

  • Not all platforms provide this directory — call HasProjectPersistentDownloadDir() first rather than assuming the returned path is usable.
  • Unlike ProjectSavedDir(), this directory is intended to survive game updates/reinstalls on platforms that support it, making it the right target for downloaded DLC-style content rather than transient save data.

Signature

static FString ProjectPersistentDownloadDir();

Return Type

FString

Example

Write to the persistent download directory C++
if (UBlueprintPathsLibrary::HasProjectPersistentDownloadDir())
{
    FString DownloadDir = UBlueprintPathsLibrary::ProjectPersistentDownloadDir();
    UE_LOG(LogTemp, Log, TEXT("Persistent download dir: %s"), *DownloadDir);
}

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.