ドキュメント

Unity Engine

Unity Engine

FrameDataView.GfxResourceInfo

Provides methods for retrieving graphics resource information.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.