- Home /
Fatal Error While Playing -- VertexData.cpp
Keep getting this error when I play within the Unity editor. I've tried determining the reason behind this issue but haven't been able to figure it out. I'm neither manipulating with the mesh via a script nor anything else which generally causes mesh-related errors in the memory.
It happens randomly and generally when the editor is full of a lot of objects.
I've been wondering if it is because of this:
Is it because the number of spawned objects is fairly large?
Is it because the terrain size is too large (4000x4000)
Is it because of the Quality Settings
Is it because I'm running so much on a 32-bit system?
If anybody can help me figure out the issue behind this in any way, it'll be really appreciated.
Thank you in advance!
I can be wrong but i think that you have to optimize meshes, change mesh colliders into sphere/cube/etc., reduce meshes verticies count.
Well, what's happened is some vertex code in Unity has asked for some memory, and the OS has said there is no more memory available. So, although it's a vertex buffer that has triggered this crash it's not the case that the vertex code is at fault. Simplify the project, either reduce the resolution of the textures, or make the terrains lower resolution.