文档

Unity Engine

Unity Engine

SetSelectionById

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

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.