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
- Window preview appears on a different monitor when undocking and dragging a window with a high-resolution monitor set up on the right and a low-resolution monitor on the left.
- Probe Volume Baking Set Reference Documentation is missing
- Crash on RendererScene::NotifyInvisible when entering Play mode after undoing a change within the scene with Ctrl+z
- [iOS] Final Image misaligned when using "ScalableBufferManager.ResizeBuffers" to resize
- GameObjects are not updating when Materials and Cubemaps are updated from Environmental Reflections
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