UBlueprintPathsLibrary::RemoveDuplicateSlashes

Removes duplicate slashes in paths.

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 void RemoveDuplicateSlashes
(
    const FString & InPath,
    FString & OutPath
)

Remarks

Removes duplicate slashes in paths. Assumes all slashes have been converted to TEXT('/'). For example, takes the string: BaseDirectory/SomeDirectory//SomeOtherDirectory////Filename.ext and converts it to: BaseDirectory/SomeDirectory/SomeOtherDirectory/Filename.ext

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