MeshCollider Convex Mesh Descriptor Is Invalid

I’m getting the error that the user-provided convex mesh descriptor is invalid when setting the sharedMesh of the MeshCollider of my code-generated mesh.

This is the code I’m using to generate the Mesh and set it to the Mesh Collider:

Google turned up only one other related post, but no one has answered it in like 8 months. What is going wrong?

I was having a similar issue and it turned out it was because all my verts had been set to (0,0,0). Not sure if this what is happening in your case as I didn’t run your code. but thought that that info might help.