private void OnClickedNode(BaseNodeView node) { _selectedNode = node; var attributes = (TaskTooltipAttribute[])node.Task.GetType().GetCustomAttributes(typeof(TaskTooltipAttribute), true); if (attributes.Length > 0) { var attribute = attributes.First(); if (attribute != null) { _tooltipWindow = GetWindow <TooltipWindow>(true, "Tooltip", false); _tooltipWindow.position = new Rect(position.xMin + 20 + _currentZoom * 10f, position.yMax - 100, 200, 80); _tooltipWindow.Tooltip = attribute.Tooltip; _tooltipWindow.ShowPopup(); } } }