How to combine multiple meshes into a single mesh and save it.

Hi,

I want to combine multiple meshes into a single mesh inside of unity editor.
I have seen Mesh.CombineMeshes() documentation in run time at Unity - Scripting API: Mesh.CombineMeshes .

But I want to do it through editor script and then save it to file system.
How to do it?

You have access to the entire mesh of any object(vertices, normals and UVs) using this component:

With this data you can just write an object writer and save to you desired file format, like obj or fbx.