Need to Merge Two Meshes in Code

As per title I would like to do this directly in C#.
The manual editor equivalent appears to use a combination of the MergeObjects.cs and InternalMeshUtility.cs files but I can’t find a direct API equivalent in the Unity Docs UnityEngine.Probuilder.MeshOperations section.

Any help/links would be appreciated.

That is private API at the moment, but I don’t see any reason that it needs to be. I will expose it for the next patch update.

2 Likes

Thanks! That would be a great help

This is now public Class CombineMeshes | Package Manager UI website

Great! I’m working on a procedural generation project for architecture so will be using it shortly.

Can’t the “csg” still be used while the program is running?