Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSelection

Set the selected items of the TreeView.
Read time 1 minuteLast updated 14 days ago

Definition

SetSelection(IList<int>)

Set the selected items of the TreeView.
public void SetSelection(IList<int> selectedIDs)

Parameters

selectedIDs

TreeViewItem IDs.

Remarks

Additional Resources: TreeViewSelectionOptions.

SetSelection(IList<int>, TreeViewSelectionOptions)

Set the selected items of the TreeView.
public void SetSelection(IList<int> selectedIDs, TreeViewSelectionOptions options)

Parameters

selectedIDs

TreeViewItem IDs.

Options for extra logic performed after the selection. See TreeViewSelectionOptions.

Remarks

Additional Resources: TreeViewSelectionOptions.