SetSelection
Sets the currently selected item.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
SetSelection(int)
Sets the currently selected item.
public void SetSelection(int index)
Parameters
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.