selectedIds
Returns the persistent IDs of selected items in the data source, regardless of whether they are collapsed or not. Always returns an enumerable, even if no item is selected, or a single item is selected.
阅读时间1 分钟最后更新于 24 天前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public IEnumerable<int> selectedIds { get; }
Remarks
In a tree, if a child item is collapsed, its ID is included in the persistent selection.