Version: 2017.3

TreeView.SetSelection

Switch to Manual
public void SetSelection (IList<int> selectedIDs);
public void SetSelection (IList<int> selectedIDs, IMGUI.Controls.TreeViewSelectionOptions options);

Parameters

selectedIDs TreeViewItem IDs.
options Options for extra logic performed after the selection. See TreeViewSelectionOptions.

Description

Set the selected items of the TreeView.