When attempting to bind data to TreeView, it doesn’t update the List<TreeViewItemData>() passed through SetRootItems. Additionally, itemsSource returns HierarchyNode instead of the objects of my type nested within TreeViewItemData. I used this manual for implementation (Unity - Manual: UXML element TreeView), but the problems remain the same. It used to work for me before, but now there’s no effect. Moreover, Unity crashes when rebuilding the hierarchy and clicking to expand/collapse a group. The question is, am I doing something wrong? Could I be binding the data incorrectly?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| UIToolkit TreeView runtime binding | 0 | 158 | October 23, 2024 | |
| How to bind a serialized property to a TreeView? | 1 | 667 | May 25, 2024 | |
| Populate TreeView directly from data object or list | 0 | 166 | March 17, 2025 | |
| Unity UI Toolkit Runtime Treeview | 8 | 3181 | July 5, 2023 | |
| How to rename treeview item? | 1 | 633 | August 7, 2023 |