# GetItemMarkerIDPath(int, List<int>)

> Use to retrieve a list of a marker identifiers of all hierarchy item parents.

## Definition

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

```csharp
public void GetItemMarkerIDPath(int id, List<int> outFullIdPath)
```

### 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 marker identifiers of all ancestors of the item as a result of a method call.

### Remarks

The result is written to *outFullIdPath* list which is resized if necessary. The list contains marker identifiers of item parents in top-down order. When [HierarchyFrameDataView.ViewModes.InvertHierarchy](/engine/6000.3/script-reference/unityeditor/profiling/hierarchyframedataview/viewmodes/inverthierarchy.md) is active, the sample stack is inverted so that each item's children represents the parent samples in the captured data.
