Save created mesh

Is there a way to create a mesh procedurally in Unity and save it for later use ?

I created one and assigned to a prefab thinking that information would be saved on the prefab itself, but it saves only a reference, because when i restarted unity the prefab had a “mesh not found” on the mesh filter.

Any thoughts about this ?

Hi, welcome to the forum!

You need to assign to the MeshFilter’s sharedMesh property to change the mesh asset permanently.