SetSelectionById
Sets the currently selected item by id.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
SetSelectionById(int)
Sets the currently selected item by id.
public void SetSelectionById(int id)
Parameters
The item id.
Remarks
This will also expand the selected item if not expanded already.
SetSelectionById(IEnumerable<int>)
Sets a collection of selected items by ids.
public void SetSelectionById(IEnumerable<int> ids)
Parameters
The item ids.
Remarks
This will also expand the selected items if not expanded already.