InvalidCastException in ItemCategoryAttributeBindingView

conraddu

Member
Version 1.2.12. In the Demo scene, navigate to the `Item Description` of the `My Inventory Grid Panel`. The category attribute view set item view module is broken. The attributes are not populating in the list, and there is an InvalidCastException in the console:

InvalidCastException: Specified cast is not valid.
Opsive.UltimateInventorySystem.Editor.Inspectors.ItemCategoryAttributeNameBindingView.BindItem (UnityEngine.UIElements.VisualElement parent, System.Int32 index) (at Assets/Opsive/UltimateInventorySystem/Editor/Inspectors/ItemCategoryAttributeBindingView.cs:364)
Opsive.Shared.Editor.UIElements.ReorderableList.AddListItem (System.Int32 index, System.Single top, System.Boolean addToEnd) (at <e1a119fd74774c44940378925befb8cc>:0)
Opsive.Shared.Editor.UIElements.ReorderableList.Refresh () (at <e1a119fd74774c44940378925befb8cc>:0)
Opsive.Shared.Editor.UIElements.ReorderableList.Refresh (System.Collections.IList itemsSource) (at <e1a119fd74774c44940378925befb8cc>:0)
Opsive.UltimateInventorySystem.Editor.Inspectors.ItemCategoryAttributeBindingView.ShowAttributeTab (System.Int32 index) (at Assets/Opsive/UltimateInventorySystem/Editor/Inspectors/ItemCategoryAttributeBindingView.cs:252)

1671226720047.png

Could I get some pointers on how I can fix this on my end?
Thanks
 
Thank you for bringing this to my attention. In the last update I added a base class for AttributeBindingBase.
This cast slipped my refactor.

Your fix is correct, it will be available in the next update.
 
Top