Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/AssetUtils
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/AssetUtils/StaticMeshMaterialUtil.h |
| Include | #include "AssetUtils/StaticMeshMaterialUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/AssetUtils/StaticMeshMaterialUtil.cpp |
namespace UE
{
namespace AssetUtils
{
FName UE&58;&58;AssetUtils&58;&58;GenerateNewMaterialSlotName
&40;
const TArray< FStaticMaterial > & ExistingMaterials,
UMaterialInterface &42; SlotMaterial,
int32 NewSlotIndex
&41;
}
}
Remarks
Generate a new unique material slot name for the given SlotMaterial and NewSlotIndex, ensuring that the name is not already used in the set of ExistingMaterials