UKismetSystemLibrary::GetProjectDirectory
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Returns the root directory of the current project on disk.
Caveats & Gotchas
- • Returns an absolute path that only exists on the machine running the game — do not bake this string into save data or send it to other machines.
- • In a packaged/shipping build this points to the deployed install location, not the source project folder used during development.
- • Marked BlueprintThreadSafe, so it's safe to call off the game thread.
Signature
static FString GetProjectDirectory() Return Type
FString Example
Build a path relative to the project root C++
FString ConfigPath = UKismetSystemLibrary::GetProjectDirectory() / TEXT("MyConfig.ini"); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?