GetRootElementForId(int)
Gets the root element of the specified collection view item.
阅读时间1 分钟最后更新于 23 天前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public VisualElement GetRootElementForId(int id)
Parameters
The item identifier.
Returns
Type | Description |
|---|---|
| VisualElement | The item's root element. |
Remarks
This method provides an entry point to re-style elements added by Unity over the user-driven content. Ex. the drag handle in a ListView, or the Toggle in a TreeView.