Documentation

Unity Engine


Unity Engine


SetSelectionById

Sets the currently selected item by id.
Read time 1 minuteLast updated a month ago

Definition

SetSelectionById(int)

Sets the currently selected item by id.
public void SetSelectionById(int id)

Parameters

id

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.