- Home /
Out Of Memory With Mesh Generation
Hello.
I've been having a problem with a terrain generation script recently. Basically, it creates a mesh for the terrain based off of as heightmap, then it creates a collider for the generated mesh (Much smaller than the terrain itself) so that it has collision. My problem is that after 20 or so terrain updates, Unity runs out of memory. It mentions the RecalculateNormals() function, and things about vertex data in the error window. How would I free the memory of the mesh, since that seems to be what's causing it?
Thanks in advance.
Your answer
Follow this Question
Related Questions
Huge world without huge lag? 1 Answer
Can a dynamic mesh be made NOT readable? to save mem 1 Answer
How can I get a Low Poly terrain to work in Unity? 2 Answers
Dynamic texture is visible in editor but pink when is built 1 Answer
Problem with Winding Generated mesh, Material and edges appear wrong 1 Answer