Search Issue Tracker

Fixed in 3.0.4

Votes

0

Found in [Package]

3.0.2

Issue ID

1170177

Regression

No

[2D] [Animation] Error appears in console when trying to set SpriteLibrary Category List size to negative value

Package: 2D Animation

-

[2D] [Animation] Error appears in console when trying to set SpriteLibrary Category List size to negative value

Steps to Repro:

1. Create a Sprite Library Asset
2. Create a new Category
3. Click over the Size field and move the mouse to the left (to try to set the Size value to less than 0)

Result: An Error appears in the console.
Expected: The user should be unable to set the value to a negative
---

Array size must be non-negative.
UnityEditor.Experimental.U2D.Animation.SpriteLibraryAssetInspector:DrawElement(Rect, Int32, Boolean, Boolean)
UnityEditorInternal.ReorderableList:DoListElements(Rect)
UnityEditorInternal.ReorderableList:DoLayoutList()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.