# GetItemDescendantsThatHaveChildren(int, List<int>)

> Use to retrieve a list of a hierarchy item descendants which have other children.

## Definition

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

```csharp
public void GetItemDescendantsThatHaveChildren(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 all child identifiers which have children.

### Remarks

The result is written to *outChildren* list which is resized if necessary. The call builds the whole hierarchy view tree and can be expensive.

Additional Resources: GetDescendantsThatHaveChildren.
