An open API service indexing awesome lists of open source software.

https://github.com/James-Frowen/merge-mesh-unity

Custom editor window unity to merge and export mesh
https://github.com/James-Frowen/merge-mesh-unity

export-mesh merge-mesh unity unity-editor

Last synced: about 1 year ago
JSON representation

Custom editor window unity to merge and export mesh

Awesome Lists containing this project

README

          

# Merge Mesh in Unity3d

Custom editor window unity to merge and export mesh.

# Install

Copy code from the source folder to Assets folder in unity project.

# How to use

This tool editor tool has 2 uses: merge multiple mesh into 1 mesh and export mesh to .obj.

## Merge mesh

For this example I have created a room made out of multiple Quads. *(Note the order in the hierarchy is not important)*

![room made of multiple mesh](./docs/1.jpg)

Add the `Mesh Filter` of the objects you want to merge. Using the `add to list` button will add all selected `Mesh Filter`.

![adding mesh to merge list](./docs/2.jpg)

The `merge mesh` button will merge the mesh and open a window to save the mesh asset file for unity to use.

![merge mesh save window](./docs/3.jpg)

After the mesh has been merged, an object using the new mesh will be added to the scene and all of the old objects will be disabled.

![saved mesh in asset folder](./docs/4.jpg)

## Export mesh

To export the Mesh as an `.obj` file select the `GameObject` in the scene and press the export button. A window will open for the save location.

![export mesh save window](./docs/5.jpg)

Once the object has been exported it can be used by other 3d viewer and editors.

![exported mesh being opened in 3d model viewer](./docs/6.jpg)

# Bugs?

If you find a bug while using the tool or just have a suggestion please create a new issue on github or tweet [@JamesFrowenDev](https://twitter.com/JamesFrowenDev)