Unity Issue Tracker - ArgumentOutOfRangeException is thrown and Editor hangs when generating geometry with hidden Sprites
Fixed
DANB-841
ArgumentOutOfRangeException is thrown and Editor hangs when generating geometry with hidden Sprites
Package: 2D Animation
Fixed
9.1.X
7.1.X
10.1.X
This fix will be released as the 2d animation package 9.2.1 or above.
This fix will be released as the 2d animation package 7.2.0 above.
The fix for this issue is available with the 2d animation package 10.2.1 and above.
Thank you.
Reproduction steps:
1. Open the attached “bug-report.zip” project
2. From the Project Window select “Character.psb”
3. Click on “Open Sprite Editor” in the Inspector
4. In the Sprite Editor window, switch the dropdown from “Sprite Editor” to “Skinning Editor”
5. Select “Auto Geometry” on the right side menu
6. Click on the “Visibility” button at the top to open the Visibility menu
7. Select “Sprite” and hide any of the Sprites
8. In the Geometry window click “Generate For All Visible” button
9. Observe the Console and the Editor
Expected result: The geometry gets generated
Actual result: “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.” is thrown and Editor hangs indefinitely