Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddChild(TreeViewItem)

Helper method that adds the child TreeViewItem to the TreeViewItem.children list and sets the parent property on the child.
Read time 1 minuteLast updated 14 days ago

Definition

Warning
Deprecated. TreeViewItem is now deprecated. You can likely now use TreeViewItem\<int\> instead and not think more about it. But if you were using that identifier to store InstanceID data, you should instead opt to upgrade your TreeViews to use TreeViewItem\<InstanceID\> to get the proper typing.
public void AddChild(TreeViewItem child)

Parameters

TreeViewItem to be added to the children list.