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?
Answer by jantje
4 days ago
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
62 People are following this question.
How to fix Unity 5 Mesh Collider Convex Problems?
What does convex do in mesh collider component?
How can I raycast a flat mesh?
How to add a MeshCollider to a plane that has been modified with a shader displacement map
Mesh Collider Problems