C++ Mesh Merge tutorial error

Hello, I’m trying to implement mesh merge into my project following this tutorial:
Modular Characters in Unreal Engine | Unreal Engine 5.0 Documentation

After pasting the code and compiling I get the following errors:

|Error||Duplicate struct name: SkelMeshMergeUVTransformMapping also exists in file C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Engine\Public\SkeletalMeshMerge.h|project|C:\Users\asd\Documents\Unreal Projects\project\Source\project\MeshMergeFunctionLibrary.h|41||

|Error|MSB3073|The command C:\Program Files\Epic Games\UE_5.0\Engine\Build\BatchFiles\Build.bat projectEditor Win64 Development -Project=C:\Users\asd\Documents\Unreal Projects\project\project.uproject -WaitMutex -FromMsBuild exited with code 6.|project|C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets|45||

I don’t know what these mean so does someone know what’s wrong?

I changed from SkelMeshMergeUVTransformMapping to SkelMeshMergeUVTransformMappings in MeshMergeFunctionLibrary.h and MeshMergeFunctionLibrary.cpp.
because error message said that there is something same struct name.
and then it works good.

1 Like

I found out that you don’t actually need to do the c++ stuff anymore as the functionality has been added into the engine via a plugin you can to activate.