# FrameDataView.UnityObjectInfo

> Unity Object information.

## Definition

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

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

## Examples

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

public class Example
{
    public static string GetInstanceName(int frame, int instanceId)
    {
        using (var frameData = ProfilerDriver.GetRawFrameDataView(frame, 0))
        {
            if (!frameData.GetUnityObjectInfo(instanceId, 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.0/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/allocationrootid.md)                       | The native allocation ID of this Unity Object. |
| [name](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/name.md)                                               | Name of UnityEngine.Object instance.           |
| [nativeTypeIndex](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/nativetypeindex.md)                         | Native type index of the object instance.      |
| [relatedGameObjectInstanceId](/engine/6000.0/script-reference/unityeditor/profiling/framedataview/unityobjectinfo/relatedgameobjectinstanceid.md) | The instance ID of a related Unity Object.     |
