# GetItemName(int)

> Gets the sample name associated with the item.

## Definition

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

```csharp
public string GetItemName(int id)
```

### Parameters

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

### Returns

| Type                                                           | Description                                                 |
| -------------------------------------------------------------- | ----------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Returns item name. Returns *null* if identifier is invalid. |
