RealDocs

UBlueprintPathsLibrary::LaunchDir

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

Description

Returns the directory the application was launched from — useful for command-line utilities and tools that need to resolve paths relative to where the executable was invoked, as opposed to where its binaries live.

Caveats & Gotchas

  • This is the launch working directory, not the engine or project root — for those, use EngineDir() or ProjectDir() respectively.
  • Rarely useful in a packaged game launched by a platform's shell/launcher (the value may be a temp or system directory); it's primarily relevant for editor and commandlet tooling invoked from a terminal.

Signature

static FString LaunchDir();

Return Type

FString

Example

Log the directory a commandlet was launched from C++
FString Launch = UBlueprintPathsLibrary::LaunchDir();
UE_LOG(LogTemp, Log, TEXT("Launched from: %s"), *Launch);

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.