Issues with Unity cloth

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.