UsdUtils::SanitizeUsdIdentifier

Returns a modified version of InIdentifier that can be used as a USD prim or property name.

Windows
MacOS
Linux

References

Module

USDUtilities

Header

/Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Public/USDConversionUtils.h

Include

#include "USDConversionUtils.h"

Source

/Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Private/USDConversionUtils.cpp

Syntax

namespace UsdUtils
{
    FString UsdUtils::SanitizeUsdIdentifier
    (
        const TCHAR * InIdentifier
    )
}

Remarks

Returns a modified version of InIdentifier that can be used as a USD prim or property name. This means only allowing letters, numbers and the underscore character. All others are replaced with underscores. Additionally, the first character cannot be a number.

that this obviously doesn't check for a potential name collision.

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