Unity Issue Tracker - CustomPropertyDrawer throws an "Assertion failed on expression" error when adding the first element to the list
Fixed
UUM-34033
CustomPropertyDrawer throws an "Assertion failed on expression" error when adding the first element to the list
Unity: UI Toolkit Controls
Fixed
2023.2.X
2022.3.X
Won't Fix
2023.1.X
2023.1.0a26 onwards
2021.3.X
2021.3.31f1 onwards
2023.1 is no longer a supported version of Unity. Please see the corresponding 2023.2 port instead (if applicable).
This bug is not reproducible with 2021.3
Reproduction steps:
1. Open the attached project “CustomPropertyBug“
2. Open the Scene “Assets/Scenes/Test”
3. In the Hierarchy window select the GameOjbect “InspectorTest3“
4. Add the element to the list “Reference Data List”
Expected result: The first element is added
Actual result: Error “Assertion failed on expression: 'IsInSyncWithParentSerializedObject()'“ is logged after adding the first element
Reproducible with: 2022.2.3f1, 2022.2.16f1, 2023.1.0b13, 2023.2.0a11
Not reproducible with: 2022.2.2f1
Couldn't test with 2020.3.47f1, 2021.3.23f1 (List is replaced with “No GUI Implemented” message)
Reproducible on: Windows 11
Prioritise and Follow this issue
Have a workaround or additional info about this issue?