TreeViewItem
The TreeViewItem is used to build the tree representation of a tree data structure.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
- Inherits from: TreeViewItem<int>
- Implements: IComparable<TreeViewItem<int>>
public class TreeViewItem : TreeViewItem<int>, IComparable<TreeViewItem<int>>
Remarks
The TreeViewItem can be derived from to add custom data.
Additional Resources: TreeView.
Constructors
Constructor | Description |
|---|---|
| TreeViewItem() | TreeViewItem constructor. |
| TreeViewItem(System.Int32) | TreeViewItem constructor. |
| TreeViewItem(System.Int32,System.Int32) | TreeViewItem constructor. |
| TreeViewItem(System.Int32,System.Int32,System.String) | TreeViewItem constructor. |
Properties
Property | Description |
|---|---|
| children | The list of child items of this TreeViewItem. |
| parent | The parent of this TreeViewItem. If it is null then it is considered the root of the TreeViewItem tree. |
Methods
Method | Description |
|---|---|
| AddChild | Helper method that adds the |