Search Issue Tracker
Duplicate
Votes
1
Found in
5.3.4p4
Issue ID
792494
Regression
No
[Cloth]Trying to create and select a prefab that has a cloth component throws an exeption
Steps to reproduce:
1. Download and open attached project.
2. Open scene named "Bug".
3. Create an empty prefab inside of "Assets" folder.
4. Navigate to the "hierarchy" window, drag and drop game object named "Dress" to a recently created prefab.
5. Select that prefab.
6. Notice the output of "Console" window:
"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:349)
UnityEditor.ClothInspector.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:261)"
7. Select another asset from "Assets" folder.
8. Select prefab asset again and notice that exception is thrown again.
Expected result:
Selecting prefab that has a cloth component should not throw any exception.
Reproduced with:
5.1.0f3, 5.2.4f1, 5.3.4f1, 5.3.4p6, 5.4.0b18.
Project attached below.
Comments (6)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
pritikajiads
Oct 09, 2023 10:29
nice
DSL-TailorIt
Jan 13, 2017 10:55
This issue is still occuring for me in Unity 5.5.0f3