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.
阅读时间1 分钟最后更新于 1 个月前
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. |