GetIndexForId(int)
Returns the index for the specified id.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public virtual int GetIndexForId(int id)
Parameters
The item ID.
Returns
Type | Description |
|---|---|
| int | The item index. |
Remarks
For example, the index will be different from the id in a tree.