Question by
Castle24 · Oct 17, 2019 at 09:18 AM ·
meshprocedural
Is the limit of mesh vertices(65535) still valid?
I'm generating a procedural landmass. But I found the number of vertices can be greater than the vertices limit(65535). Is the limit still exists?
sharedscreensrfdshot.jpg
(48.4 kB)
Comment
Best Answer
Answer by Bunny83 · Oct 20, 2019 at 02:33 AM
Yes and no. If you create a Mesh from code the default indexFormat is still 16 bit as it'S enough for more cases and it requires just half the memory than a 32 bit index buffer. Since they added the indexFormat setting you can now simply set it to 32 bit and the generated index buffer will be 32 bit per index (so it supports up to 4 billion vertices).
In the past imported meshes with more than 64k vertices were automatically split into several meshes. Now Unity just creates a mesh with the 32 bit indexFormat.