Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.3.53f1

6000.0.29f1

6000.1.0a9

7000.0.0a12

Issue ID

UUM-87800

Regression

No

Listview selection not updated when the binded itemsSource changes

-

h3. Description
deleting mask modifiers (with shortcut) doesn't update the selected item correctly, when deleting the last item of the list view, the selection is out of bounds and trying to copy will result in a null ref exception.

h3. Repro Steps
Open WorldWorkspace/EnvTestProject
Open GettingStarted scene
select WorldAsset game object
double click on the object picker in the inspector to open the WorldAssetEditor window
select MaterialAssetLayer
in the inspector, click on the Mask tab
add a mask modifier by clicking on the + button (any type of modifier works)
select the modifier (click on it)
delete it (delete key or Ctrl+x)
copy (Ctrl+c)

h3. Actual Results
exception

h3. Expected Results
no exception

h3. Versions
h4. Editor Version
7000.0..0a10

h4. Git Repo Commit or Package Version

  1. Resolution Note:

    The issue was with the ListView usage. Use TrackPropertyValue to track external changes to a serialized property.
    https://docs.unity3d.com/6000.0/Documentation/ScriptReference/UIElements.BindingExtensions.TrackPropertyValue.html

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.