# FrameDataView.UnityObjectInfo

> Unity Object information.

## Definition

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

```csharp
public struct FrameDataView.UnityObjectInfo
```

## Examples

```csharp
using UnityEditorInternal;
using UnityEditor.Profiling;
using UnityEngine;

public class Example
{
    public static string GetInstanceName(int frame, EntityId entityId)
    {
        using (var frameData = ProfilerDriver.GetRawFrameDataView(frame, 0))
        {
            if (!frameData.GetUnityObjectInfo(entityId, out var info))
                return "N/A";
            return (frameData.GetUnityObjectNativeTypeInfo(info.nativeTypeIndex, out var typeInfo)) ? typeInfo.name + ": " + info.name : info.name;
        }
    }
}
```

## Properties

| Property                                                                                                                                      | Description                                    |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [allocationRootId](/engine/6000.5/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/allocationrootid.md)                   | The native allocation ID of this Unity Object. |
| [name](/engine/6000.5/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/name.md)                                           | Name of UnityEngine.Object instance.           |
| [nativeTypeIndex](/engine/6000.5/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/nativetypeindex.md)                     | Native type index of the object instance.      |
| [relatedGameObjectEntityId](/engine/6000.5/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/relatedgameobjectentityid.md) | The EntityId of a related Unity Object.        |
