# GetItemChildren(int, List<int>)

> Retrieves a list of hierarchy item children.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Profiling](/engine/6000.7/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor.CoreModule

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Hierarchy item identifier.**** (\[List\<int>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): 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](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeviewitem/children.md).
