UBlueprintPathsLibrary::EngineDir
#include "Kismet/BlueprintPathsLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the base directory of the core engine install, shared across projects and mods that use the same engine (e.g. shaders and base localization files live here). Equivalent to FPaths::EngineDir() exposed for Blueprint/Python.
Caveats & Gotchas
- • Returns a path relative to the working directory, not an absolute path — wrap with ConvertRelativePathToFull() if you need an absolute path for use outside UE (e.g. an OS file picker).
- • In a packaged, cooked build the returned directory typically doesn't contain source assets — Engine content is cooked into pak files, so this path is mainly useful for locating engine binaries/config rather than raw content on disk.
Signature
static FString EngineDir(); Return Type
FString Example
Locate the engine install directory C++
FString Engine = UBlueprintPathsLibrary::EngineDir();
UE_LOG(LogTemp, Log, TEXT("Engine dir: %s"), *Engine); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?