I just set “Virtualization Method” to “Dynamic Height” and “Reorder Mode” to “Animated” and set some elements to style.display = DisplayStyle.None according to the AddType of the item.
However, the result is an issue in which countless elements are added to select and drag items like the attached file, or scrolls are disabled.
In situations where countless elements are added, ListView’s makeItem callback is also called the same.
Nothing has been added to the rest of the event except makeItem in ListView.
As confirmed in Unity 2021.3.16f, similarly, a situation that operates strangely is created in Unity 2022.2.1f.
I started getting that dragging issue in 2022.2.1f. Also another one where my scroll position gets reset when trying to scroll down and it’s impossible to see the bottom of elements unless you re-arrange / add new ones.
You can follow the progress of this issue here. I think it is the same. A few additional fixes were made during this bug fix, so chances are that it will fix the issues mentioned in this thread.
The fix just landed, so it should reach users in a near future.
1 Like