Version: 2022.2

FrameDataView.UnityObjectInfo.relatedGameObjectInstanceId

切换到手册
public int relatedGameObjectInstanceId ;

描述

The instance ID of a related Unity Object.

Stores the ID of a related Unity Object. You can use this to find the name of a related Unity Object if the Profiler didn't capture the name of the current Unity Object. Components might not have a defined name when a Scene loads, but the name will always evaluate to the same as the GameObject that the Component is assigned to. If the relatedInstanceId isn't zero, then use the FrameData.GetUnityObjectInfo function to see more information about the related Unity Object.