Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TreeViewState

The TreeViewState contains serializable state information for the TreeView.
Read time 1 minuteLast updated 11 days ago

Definition

Warning
Deprecated. TreeViewState is now deprecated. You can likely now use TreeViewState\<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 TreeViewState\<InstanceID\> to get the proper typing.
public class TreeViewState : TreeViewState<int>

Remarks

This is primarily state that the user could have changed by interacting with the TreeView, for example the selection state, expanded state, navigation state and scroll state.
The TreeViewState is the only state that should be serialized/deserialized in the TreeView. The TreeView itself is not serializable and should be reconstructed from the tree data it is representing.
All the state contained in this class is updated by the TreeView itself. Access to this state can also be done through the TreeView API.

Inheritance