# GetItemEntityId(int)

> Returns EntityId 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

```csharp
public EntityId GetItemEntityId(int id)
```

### Parameters

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

### Returns

| Type                                                                | Description |
| ------------------------------------------------------------------- | ----------- |
| [EntityId](/engine/6000.6/script-reference/unityengine/entityid.md) |             |

### Remarks

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