Hi there,
I used the Combine-Meshs Script as Basis for an Editorfunction which combines meshs in the editor and removes the source objects.
My goal is to reduce startup time by combining meshs in the editor.
This works really well but I am wondering whether the combined meshs are saved and e.g. included in the build when building?
If not is there a way to save the combined meshs to the Assets?
Think that is depending on how you do things. The AssetDatabase class might be of help there oh and the EditorUtility class.
Well, yeah, that much I figured out, but my problem is how to save meshs, as there seems to be no predefined asset type…
Theoretically I could just call the combine script at level loading, but that would slow down the loading process!
Eric5h5
4
You could probably use the .obj exporter script on the wiki to export the combined mesh as an .obj file.
–Eric