Search Issue Tracker

By Design

Votes

0

Found in

2019.4

2020.1.2f1

2020.2

Issue ID

1270655

Regression

No

[UIElements/UI Toolkit] One extra item is added to the ListView when a ListView is bound to a SerializeReference List

UI Toolkit

-

How to reproduce:
1. Open the user's attached "bug-uielements-list-binding.zip" project
2. Open the "scene" Scene
3. Select the "Tests" GameObject in the Hierarchy window
4. Observe the Inspector

Expected result: ListView and the bound SerializeReference List have the same amount of items
Actual result: ListView has 3 items while the bound SerializeRefence List has only 2 items

Reproducible with: 2019.4.8f1, 2020.1.3f1, 2020.2.0a21
Could not test with: 2018.4.26f1 (UI Toolkit is not available)

  1. Resolution Note:

    This behaviour is currently by design in the ListView binding. However you can easily disable it by setting the showBoundCollectionSize property of ListView instance to false.

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.