Unity Issue Tracker - PropertyField.BindProperty(SerializedProperty) fails to clear the previously bound property when a new one is bounded
Fixed
UUM-4165
PropertyField.BindProperty(SerializedProperty) fails to clear the previously bound property when a new one is bounded
Unity: UI Toolkit Controls
Fixed
2023.1.X
2022.2.X
2021.3.X
Won't Fix
2022.1.X
Fixed in: 2023.1.0a21
Fixed in: 2022.2.0b10
Port canceled as we transition to 2022.2 (2022.2.X port is active or already resolved)
Fix for 2021.3.X: PropertyField.BindProperty(SerializedProperty) fails to clear the previously bound property when a new one is bounded
How to reproduce:
1. Open the attached project "PropFieldBug.zip"
2. Open "SampleScene" located in the Assets > Scenes folder
3. Click on the "Track3" GameObject in the Hierarchy window
4. Click on any id of the Path System Track component in the Inspector window
5. Check the Console window
6. Repeat steps 4 and 5 a few times
Expected result: PropertyField.RegisterValueChangeCallback() event is called once every time an id is pressed
Actual result: PropertyField.RegisterValueChangeCallback() is called incrementaly(+1) every time the id is pressed