RealDocs

UBlueprintPathsLibrary::ProjectDir

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

Description

Returns the base directory of the current project, derived from FApp::GetProjectName(). Equivalent to FPaths::ProjectDir() exposed for Blueprint/Python.

Caveats & Gotchas

  • Can be overridden on the command line (e.g. for self-contained mod support), so don't assume it always matches the .uproject's on-disk location relative to the engine.
  • Returns a path relative to the working directory, not absolute — wrap with ConvertRelativePathToFull() before showing it to a user or writing it to a save file.

Signature

static FString ProjectDir();

Return Type

FString

Example

Locate the project's base directory C++
FString Project = UBlueprintPathsLibrary::ProjectDir();
UE_LOG(LogTemp, Log, TEXT("Project dir: %s"), *Project);

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.