// Draw only this node on GUI public void DrawOnGUI(SearchResultDrawParameters parameters, string linkToPrevNodeDescription) { string label = string.IsNullOrEmpty(linkToPrevNodeDescription) ? description : (linkToPrevNodeDescription + "\n" + description); if (GUILayout.Button(label, Utilities.BoxGUIStyle, Utilities.GL_EXPAND_HEIGHT)) { // If a reference is clicked, highlight it (either on Hierarchy view or Project view) UnityObject.SelectInEditor(); } if (parameters.showTooltips && Event.current.type == EventType.Repaint && GUILayoutUtility.GetLastRect().Contains(Event.current.mousePosition)) { parameters.tooltip = label; } }