How do you completely clear a mesh?

Hello,

The heading says it all. I have procedurally made a mesh and it works great, but when I go to clear it with “Mesh.Clear()”, the mesh is still there. I have also passed false to the Clear function ( "mesh.Clear(false) ) and it doesn’t work either. I want to clear it because this mesh is always changing, and the updates to the mesh are happening correctly, but the old part of the mesh is never cleared, resulting in a large messy mesh.

How can I just delete the mesh and start fresh from code?

Thanks

Thanks for the suggestions. I was going about this the wrong way. I just needed to rewrite the vertex positions. My code was adding vertex positions to a list which then was passed to the vertex positions for the mesh, but I never cleared the list when I wanted to refresh, thus it was never clearing the old positions.