- Home /
How do I properly save a procedurally created mesh?
I've procedurally created a mesh in script that renders as expected in the editor. However, I want to be able to save it as an asset for reuse. I have attempted to do so like this: AssetDatabase.CreateAsset(myMesh, "myPath/myProceduralMesh");
This creates the mesh (no extension) in the Project but I can't drag it into the mesh property of the MeshFilter component.
Is there a file extension that I need to save my file with for this to work? What is the correct method?
Your answer
Follow this Question
Related Questions
Fastest Way To Save/Load a SkinnedMeshRenderer at Runtime 0 Answers
How should I save the Meshes generated inside a ScriptableObject 1 Answer
Best way to save procedural world/mesh? 0 Answers
Create the visual spring in Unity? 3 Answers
how to use EditorObjExporter .obj-saving-script from the wiki? 5 Answers