Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetItemChildren(int, List<int>)

Retrieves a list of hierarchy item children.
Read time 1 minuteLast updated 13 days ago

Definition

public void GetItemChildren(int id, List<int> outChildren)

Parameters

id

Hierarchy item identifier.

outChildren

List filled with item child identifiers as a result of a method call.

Remarks

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 call builds next hierarchy level making child data available for retrieval.
Additional Resources: TreeViewItem.children.