Bake EditableMesh onto MeshPart

Is there a way to bake the EditableMesh onto a MeshPart if I don’t intend on changing any of its vertices again?

I’m generating some meshes at run time, which I never intend to change the vertices of, however, I quickly run into the Failed to create empty EditableMesh that was requested due to reaching memory budget limits. warning (as I am making quite a few of these).

If I do emesh:Destroy(), it removes the visible mesh, even though the collision box is still there, but I want to be able to see the mesh and collide with it; is there a way to mark an editable mesh as non-editable in order to free up more memory?

Thank you.

1 Like