RealDocs

UBlueprintPathsLibrary::EngineContentDir

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

Description

Returns the Content directory of the core engine install, shared across projects and mods using the same engine. This is where built-in engine assets (starter content, editor icons, etc.) live on disk.

Caveats & Gotchas

  • In a cooked/packaged build, engine content is baked into pak files rather than existing as loose files under this path — this function is mainly relevant for editor tooling, not runtime asset loading in shipping games.
  • Returns a path relative to the working directory; wrap with ConvertRelativePathToFull() for an absolute path.

Signature

static FString EngineContentDir();

Return Type

FString

Example

Locate the engine content directory in an editor tool C++
FString ContentDir = UBlueprintPathsLibrary::EngineContentDir();
UE_LOG(LogTemp, Log, TEXT("Engine content dir: %s"), *ContentDir);

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.