UBlueprintPathsLibrary::MakePathRelativeTo

Assuming both paths (or filenames) are relative to the same base dir, converts InPath to be relative to InRelativeTo

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintPathsLibrary.h

Include

#include "Kismet/BlueprintPathsLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/Kismet/BlueprintPathsLibrary.cpp

Syntax

static bool MakePathRelativeTo
(
    const FString & InPath,
    const FString & InRelativeTo,
    FString & OutPath
)

Remarks

Assuming both paths (or filenames) are relative to the same base dir, converts InPath to be relative to InRelativeTo

Returns

true if OutPath was changed to be relative

Parameters

Parameter

Description

InPath

Path to change to be relative to InRelativeTo

InRelativeTo

Path to use as the new relative base

InPath

New path relative to InRelativeTo

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss