FPaths::ChangeExtension

Changes the extension of the given filename (does nothing if the file has no extension)

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Paths.h

Include

#include "Misc/Paths.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/Paths.cpp

Syntax

static FString ChangeExtension
(
    const FString & InPath,
    const FString & InNewExtension
)

Remarks

Changes the extension of the given filename (does nothing if the file has no extension)