文档

Unity Engine

Unity Engine

SetSelection

Sets the currently selected item.
阅读时间1 分钟最后更新于 1 个月前

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.