FrameDataView.GfxResourceInfo
Provides methods for retrieving graphics resource information.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.Profiling
- Assembly: UnityEditor.CoreModule
public struct FrameDataView.GfxResourceInfo
Remarks
using UnityEditorInternal;using UnityEditor.Profiling;public class Example{ public static string GetGfxResourceName(int frame, ulong gfxResourceId) { using (var frameData = ProfilerDriver.GetRawFrameDataView(frame, 0)) { if (frameData.GetGfxResourceInfo(gfxResourceId, out var info)) { if (frameData.GetUnityObjectInfo(info.relatedEntityId, out var objectInfo)) return objectInfo.name; } return "N/A"; } }}
Additional Resources: FrameDataView.GetGfxResourceInfo.
Properties
Property | Description |
|---|---|
| relatedAllocationRootId | Related native allocation id of the graphics resource. |
| relatedEntityId | Related EntityId of Unity Object. |