Version: 2022.2
public void GetItemChildren (int id, List<int> outChildren);

参数

id 层级视图项标识符。
outChildren 使用项的子项标识符填充的列表(作为方法调用的结果)。

描述

获取层级视图项的子项的列表。

The result is written to outChildren list which is resized if necessary. The list contains identifiers of item children in order defined by sorting parameters. Identifier defines a specific tree view item in the current frame hierarchy. Different frames have different identifiers for the tree items.

GetItemChildren 调用会构建下一个层级视图级别,使子项数据可供获取。

另请参阅:TreeViewItem.children

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961