[Unity] Increase the maximum vertex count for a mesh

Unity has a mesh limit which sets the maximum vertex count to
65535. With the following property you can increase the vertex count to ~4 billion:

mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;

Leave a Reply

Your email address will not be published. Required fields are marked *