Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSelection

Sets the currently selected item.
Read time 1 minuteLast updated 4 days ago

Definition

SetSelection(int)

Sets the currently selected item.
public void SetSelection(int index)

Parameters

index

The item index.

SetSelection(IEnumerable<int>)

Sets a collection of selected items.
public void SetSelection(IEnumerable<int> indices)

Parameters

The collection of the indices of the items to be selected.