RealDocs

UKismetSystemLibrary::GetProjectContentDirectory

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

Description

Returns the Content directory of the current project on disk (i.e. the project's /Content folder).

Caveats & Gotchas

  • Returns a raw disk path, not a /Game/ package path — it can't be passed to asset-loading functions that expect virtual package paths.
  • In a packaged build the returned path points into the staged/installed Content folder, which may be read-only depending on platform.
  • Marked BlueprintThreadSafe, so it's safe to call off the game thread.

Signature

static FString GetProjectContentDirectory()

Return Type

FString

Example

Locate a loose file shipped alongside Content C++
FString DataFilePath = UKismetSystemLibrary::GetProjectContentDirectory() / TEXT("ExtraData/config.json");

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.