FrameDataView.UnityObjectInfo
Unity Object information.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor
public struct FrameDataView.UnityObjectInfo
Examples
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 | The native allocation ID of this Unity Object. |
| name | Name of UnityEngine.Object instance. |
| nativeTypeIndex | Native type index of the object instance. |
| relatedGameObjectEntityId | The EntityId of a related Unity Object. |