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" |
namespace UsdUnreal
{
namespace ObjectUtils
{
template<typename StringContainer>
FString UsdUnreal::ObjectUtils::GetUniqueName
(
FString Name,
const StringContainer & 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. Should have a .Contains() function that receives FString |