# GetItemInstanceID(int)

> Returns InstanceID of the UnityEngine.Object associated with the sample.

## Definition

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

> **Warning:**
>
> **Removed.** Use GetItemEntityId(int id) instead. This method will be removed in a future version.

```csharp
public int GetItemInstanceID(int id)
```

### Parameters

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

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### Remarks

Additional Resources: [FrameDataView.GetUnityObjectInfo](/engine/6000.6/script-reference/unityeditor/profiling/framedataview/getunityobjectinfo.md).
