A C# Editor Script that allows you to save a usable Mesh .asset file into your project.
A C# Editor Script that allows you to save a usable Mesh .asset file into your project.
Save your Mesh as an asset file.
This UnityEditor script adds context menu items to your MeshFilter component, allowing you to save its UnityEngine.Mesh object as a .asset file that you can then reuse in your project.
This is great for saving procedurally generated meshes that may be too resource-intensive to generate at runtime.
Just copy the folder called MeshSaver into your project's Assets folder, or drag it into Unity's project panel.
Save Mesh... will save the current shared mesh as an asset file.
Save Mesh As New Instance... will save a copy of the current mesh.
Note that "Save Mesh..." will not work if the mesh comes from an imported 3D asset/prefab.
No open issues yet, or sync has not completed.