Search Issue Tracker
Duplicate
Votes
2
Found in
5.4.3f1
Issue ID
851101
Regression
No
Cloth inspector throws errors when game object is inactive
When selecting a gameobject that contains a cloth component, if the gameobject is disabled then the Editor will throw an error.
Reproduction steps:
1. Open the scene "Scene" in the attached project
2. Select the "Plane" gameobject
3. Observe the following errors in the Console:
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 D:/UnityDEV/5.0-branch/Editor/Mono/Inspector/ClothInspector.cs:356)
UnityEditor.ClothInspector.OnEnable () (at D:/UnityDEV/5.0-branch/Editor/Mono/Inspector/ClothInspector.cs:266)
Expected result:
Disabled cloth objects shouldn't throw errors.
Reproducible in versions 5.4.3f1, 5.5.0f1, and 5.6.0a4.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash when reimporting fbx asset used as tree by specific Terrain component
- The position of the "X" in the search section is not consistent with other search boxes in the engine
- Unable to pan outside of the active state viewing window in the Animator when the Play Mode is paused
- Window Zoom stops working after Editor window is moved
- Some package directories are not found, and errors are thrown in the Console when the project path is quite long
Add comment