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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961