Hi everyone,
I have a list of items, each item has a different view (VisualElement).
So I bind each item to its own view in ListView.bindItem().
But after I fold and unfold it using Foldout, the ListView automatically reorders the item views.
Then it calls bindItem() and the the view (VisualElement) corresponding to the item index has been changed.
I cannot rebind them because each item has its own view and the item view doesn’t match the item index anymore.
Is there any way to prevent it from being reordered after unfolding?
Or I have to rebuild the ListView after unfolding it?
I’m using Unity 2023.2.