# relatedGameObjectEntityId

> The EntityId of a related Unity Object.

## Definition

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

```csharp
public EntityId relatedGameObjectEntityId { get; }
```

### Remarks

Stores the EntityId of a related Unity Object. You can use this to find the name of a related Unity Object if the Profiler didn't capture the [FrameDataView.UnityObjectInfo.name](/engine/6000.3/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/name.md) of the current Unity Object. Components might not have a defined name when a Scene loads, but the name will always evaluate to the same as the GameObject that the Component is assigned to. If the *relatedEntityId* isn't zero, then use the GetUnityObjectInfo function to see more information about the related Unity Object.
