RealDocs

UBlueprintPathsLibrary::Combine

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

Description

Joins an array of path segments into a single path, inserting separators between segments as needed.

Caveats & Gotchas

  • Unlike the C++-only FPaths::Combine overloads that take individual FString arguments, this Blueprint-facing version takes a single TArray — build the array first if calling from C++.
  • Does not normalize the result — mixed slash styles or redundant separators in the input segments can carry through to the output.
  • Passing fewer than two elements still compiles and runs, but there's nothing to actually combine.

Signature

static ENGINE_API FString Combine(const TArray<FString>& InPaths);

Parameters

Name Type Description Default
InPaths const TArray<FString>& Two or more path segments to join in order.

Return Type

FString

Example

Build a save file path from parts C++
TArray<FString> Parts = { FPaths::ProjectSavedDir(), TEXT("SaveGames"), TEXT("Slot1.sav") };
FString FullPath = UBlueprintPathsLibrary::Combine(Parts);

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.