internal static GameObject GetGameObjectForEvent(int eventIndex) { GameObject gameObject = null; Component component = EditorUtility.InstanceIDToObject(FrameDebuggerUtility.GetFrameEventRendererID(eventIndex)) as Component; if (component != null) { gameObject = component.gameObject; } return(gameObject); }
internal static GameObject GetGameObjectForEvent(int eventIndex) { GameObject result = null; int frameEventRendererID = FrameDebuggerUtility.GetFrameEventRendererID(eventIndex); Component component = EditorUtility.InstanceIDToObject(frameEventRendererID) as Component; if (component != null) { result = component.gameObject; } return(result); }