TreeViewItemData<T>
Item structure provided to a TreeView using the default implementation. For more information on usage, refer to TreeView and Create list and tree views.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public readonly struct TreeViewItemData<T>
Constructors
Constructor | Description |
|---|---|
| TreeViewItemData`1(System.Int32,`0,System.Collections.Generic.List{UnityEngine.UIElements.TreeViewItemData{`0}}) | Creates a TreeViewItemData<T> with all required parameters. |
Properties
Property | Description |
|---|---|
| children | Children of this tree item. |
| data | Data for this item. |
| hasChildren | Whether this item has children or not. |
| id | Id of the item. |