mesh loading broken surface

@Bunny83 I use the mesh serializer script you wrote, some models will have some problems after loading, but I do n’t know how to solve this problem, can you help me?


I found the answer myself:
Index buffer can either be 16 bit (supports up to 65535 vertices in a mesh), or 32 bit (supports up to 4 billion vertices). Default index format is 16 bit, since that takes less memory and bandwidth.
I need to set a 32 bit buffer:
mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;