RealDocs

UKismetSystemLibrary::ConvertToAbsolutePath

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

Description

Converts the passed-in filename to a fully qualified absolute path on the local file system.

Caveats & Gotchas

  • Not marked BlueprintThreadSafe — avoid calling from background threads in Blueprint.
  • The result is only valid on the machine it was generated on; never persist it into save data intended to be portable across machines.
  • Wraps FPaths::ConvertRelativePathToFull, so a relative input is resolved against the current process's base directory.

Signature

static FString ConvertToAbsolutePath(const FString& Filename)

Parameters

Name Type Description Default
Filename const FString& The filename/path to convert.

Return Type

FString

Example

Resolve a relative config path to an absolute path C++
FString AbsPath = UKismetSystemLibrary::ConvertToAbsolutePath(TEXT("../MyProject/config.ini"));

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.