RealDocs

UBlueprintPathsLibrary::RootDir

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

Description

Returns the root directory of the entire engine install tree, one level above EngineDir(). Equivalent to FPaths::RootDir() exposed for Blueprint/Python.

Caveats & Gotchas

  • Not the same as EngineDir() — RootDir() is the install root that contains Engine/, and (for source builds) the project itself if it lives alongside the engine.
  • In a packaged standalone build this typically resolves to the directory containing the game's own Engine/ folder, not a shared engine install.

Signature

static FString RootDir();

Return Type

FString

Example

Locate the install root directory C++
FString Root = UBlueprintPathsLibrary::RootDir();
UE_LOG(LogTemp, Log, TEXT("Root dir: %s"), *Root);

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.