RealDocs

UBlueprintPathsLibrary::MakePlatformFilename

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

Description

Converts a normalized "Unreal" pathname (forward slashes) into a filename using the current platform's native path separator conventions.

Caveats & Gotchas

  • OutPath is an output reference parameter, not the return value — in Blueprint this shows up as a second output pin, not the node's return.
  • This is a pure string transformation; it does not check that the path exists or resolve it in any way.
  • On platforms that already use forward slashes natively, this can be a no-op — don't rely on it to validate or clean a path.

Signature

static ENGINE_API void MakePlatformFilename(const FString& InPath, FString& OutPath);

Parameters

Name Type Description Default
InPath const FString& An "Unreal" style path using forward slashes.
OutPath FString& Receives the path rewritten with the current platform's native separator conventions.

Return Type

void

Example

Convert an Unreal path for a platform API C++
FString UnrealPath = TEXT("../../../MyProject/Saved/Logs/Game.log");
FString PlatformPath;
UBlueprintPathsLibrary::MakePlatformFilename(UnrealPath, PlatformPath);
// PlatformPath now uses '\\' on Windows, '/' elsewhere

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.