Generate Procedural Mesh

Taces, it really worked, but with one exception: when I call an Update function once, it redraws the mesh but collision remains the same. When I call the update function second time, it updates the collision also. And the collision remains of the previous object all the time I call an update function. Do you know, maybe, what can be the reason?

edited: I’ve just rebuilt a project and everything worked fine. Sorry for the question :). And thanks again