There's a depressing problem with unity 5.x development, which doesn't affect the running of your game, but it can make you awkward when you're demonstrating or communicating.
Problem Description: Mesh.colors is out of bounds. The supplied array needs to be the same size as the mesh.vertices array.
UnityEditor.ClothInspector:OnEnable ()
Indexoutofrangeexception:array Index is out of range.
UnityEditor.ClothInspector.SetupSelectedMeshColors () (at c:/buildslave/unity/build/editor/mono/inspector/ clothinspector.cs:337)
UnityEditor.ClothInspector.OnEnable () (at c:/buildslave/unity/build/editor/mono/inspector/clothinspector.cs:249)
Seeing these two codes will tell you that it's not your own code, but it's very worrying that your code is in conflict with the cloth module in unity.
In fact, this problem generally occurs in the resource of resources in the import error. If you change the parameters of prefab directly in the Resourse folder, this problem occurs when you import cloth cloth in the Resourse folder. If you do not want to adjust the parameters, it is best to pull the file into the hierarchy panel, and then modify
Issues with Unity cloth