기술 자료

Unity Engine

Unity Engine

relatedGameObjectInstanceId

The instance ID of a related Unity Object.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public int relatedGameObjectInstanceId { get; }

Remarks

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 FrameDataView.UnityObjectInfo.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 GetUnityObjectInfo function to see more information about the related Unity Object.