public void doCloseToolTip() { if (window != null) { window.Close(); } window = null; }
void showToolTip(string key, Rect buttonRect) { Rect parentRect = EditorWindow.focusedWindow.position; buttonRect.x += parentRect.x; window = EditorWindow.GetWindow <InspectorTooltipWindow>(); window.setParameters(key, Locale.instance); window.pd = this; window.Show(); //window.ShowAsDropDown(buttonRect,size); }