Unity Issue Tracker - Serialized List items with "PropertyDrawer" change when adding or removing list items
Closed
UUM-19944
Serialized List items with "PropertyDrawer" change when adding or removing list items
Unity: UI Toolkit Controls
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2022.1.X ports are superseded by 2022.2.X (cancelling port)
2020.3.X ports not supported since it would require fix to also be ported in the package (package workflow not supported anymore). Please use 2021.3.X or more recent.
How to reproduce:
1. Open the attached project
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Select the “Main Camera“ GameObject in the Hierarchy
4. Expand the “Settings“ menu and then, the “Items“ list in the “Example Component” Component
5. Delete two items by pressing the minus symbol at the bottom right of the item list
6. Add an two items to the list by pressing the plus symbol at the bottom of the “Items” list
Expected result: Items are added and removed without affecting the already existing items
Actual result: The already existing items change
Might have to delete or remove more items than said in reproduction steps to reproduce the issue
In newer versions, deleting or adding items affects other items only when changing an existing list item and then adding or deleting a list item (doesn’t work if the changed item is the last one on the list)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?