# GetItemMetadataAsLong(int, int)

> Returns long representation of hierarchy item metadata value.

## Definition

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

```csharp
public long GetItemMetadataAsLong(int id, int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Hierarchy item identifier.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Metadata index.

### Returns

| Type                                                        | Description                    |
| ----------------------------------------------------------- | ------------------------------ |
| [long](https://learn.microsoft.com/dotnet/api/system.int64) | Value of the metadata as long. |

### Remarks

Additional Resources: [HierarchyFrameDataView.GetItemMetadataCount](/engine/6000.5/script-reference/unityeditor/profiling/hierarchyframedataview/getitemmetadatacount.md), [HierarchyFrameDataView.GetItemMetadata](/engine/6000.5/script-reference/unityeditor/profiling/hierarchyframedataview/getitemmetadata.md).
