Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.53f1
6000.0.29f1
6000.1.0a9
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Active Targets section text in Graph Inspector is truncated despite available space
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
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