UGeometryScriptLibrary_MeshMaterialFunctions::CompactMaterialIDs

Compact the MaterialIDs of the TargetMesh, ie remove any un-used MaterialIDs and remap the remaining N in-use MaterialIDs to the range [0,N-1].