UBlueprintPathsLibrary::EngineSourceDir
#include "Kismet/BlueprintPathsLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the directory where the engine's C++ source code files are kept.
Caveats & Gotchas
- • Only meaningful for source builds — installed/binary engine distributions may not ship this directory, so the returned path might not exist on disk.
- • Not shipped in packaged builds; intended for editor and development tooling use only.
Signature
static FString EngineSourceDir() Return Type
FString Example
Locate the engine source tree C++
const FString SourceDir = UBlueprintPathsLibrary::EngineSourceDir();
UE_LOG(LogTemp, Log, TEXT("Engine source dir: %s"), *SourceDir); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?