Navigation
API > API/Plugins > API/Plugins/USDClasses
Description
Appends numbered suffixes to Name until the result is not contained in UsedNames, and returns it. Does not add the result to UsedNames before returning (as it is const).
| Name | UsdUnreal::ObjectUtils::GetUniqueName |
| Type | function |
| Header File | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDObjectUtils.h |
| Include Path | #include "USDObjectUtils.h" |
| Source | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Private/USDObjectUtils.cpp |
namespace UsdUnreal
{
namespace ObjectUtils
{
FString UsdUnreal::ObjectUtils::GetUniqueName
(
FString Name,
const TSet < FString > & UsedNames
)
}
}
Modified Name so that it doesn't match anything in UsedNames (e.g. "MyName" again, or "MyName_0" or "MyName_423")
Parameters
| Name | Remarks |
|---|---|
| Name | Received string to make unique (e.g. "MyName") |
| UsedNames | Strings that cannot be used for the result |