SirenixEditorGUI.IconButton does not use the tooltip passed into the call.

Issue #697 new
Jorian Baeke created an issue

The function IconButton in SirenixEditorGUI (EditorIcon variant) does not use the tooltip parameter it is given as demonstrated below:


public static bool IconButton(Rect rect, EditorIcon icon, GUIStyle style, string tooltip)
  style = style ?? SirenixGUIStyles.IconButton;
  if (GUI.Button(rect, GUIContent.none, style))
    return true;
  if (Event.current.type == EventType.Repaint)
    float drawSize = Mathf.Min(rect.height, rect.width);
    icon.Draw(rect, drawSize);
  return false;

Comments (0)

  1. Log in to comment