Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FrameDataView.GfxResourceInfo

Provides methods for retrieving graphics resource information.
Read time 1 minuteLast updated 10 days ago

Definition

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

relatedAllocationRootIdRelated native allocation id of the graphics resource.
relatedEntityIdRelated EntityId of Unity Object.