FDatasmithUtils::GetCleanFilenameAndExtension

Gets the file name and its extension.

Windows
MacOS
Linux

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithUtils.h

Include

#include "DatasmithUtils.h"

Source

/Engine/Source/Runtime/Datasmith/DatasmithCore/Private/DatasmithUtils.cpp

Syntax

static void GetCleanFilenameAndExtension
(
    const FString & InFilePath,
    FString & OutFilename,
    FString & OutExtension
)

Remarks

Gets the file name and its extension. In case of extension like asm.1, the return name is the part before the full extension (asm.1) The right part of extension must to be a numeric value

Parameters

Parameter

Description

InFilePath

the path of the file

OutFilename

the filename (without extension), minus any path information.

OutExtension

the extension

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