Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TreeView

The TreeView is always constructed with a state object and optionally a multi-column header object if a header is needed.
Read time 1 minuteLast updated 6 days ago

Definition

TreeView(TreeViewState)

The TreeView is always constructed with a state object and optionally a multi-column header object if a header is needed.
Warning
Removed. TreeView is now deprecated. You can likely now use TreeView\<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 TreeView\<InstanceID\> to get the proper typing.
protected TreeView(TreeViewState state)

Parameters

TreeView state (expanded items, selection etc.)

Remarks

Additional Resources: TreeViewState, MultiColumnHeader.

TreeView(TreeViewState, MultiColumnHeader)

The TreeView is always constructed with a state object and optionally a multi-column header object if a header is needed.
Warning
Removed. TreeView is now deprecated. You can likely now use TreeView\<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 TreeView\<InstanceID\> to get the proper typing.
protected TreeView(TreeViewState state, MultiColumnHeader multiColumnHeader)

Parameters

TreeView state (expanded items, selection etc.)

multiColumnHeader

Multi-column header for the TreeView.

Remarks

Additional Resources: TreeViewState, MultiColumnHeader.