GetIndexForId(int)
Returns the index in the source of the item, by ID.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public override int GetIndexForId(int id)
Parameters
The ID of the item to look for.
Returns
Type | Description |
|---|---|
| int | The index of the item in the expanded items source. Returns -1 if the item is not visible. |