Example #1
0
        void ShowTooltip(Rect rect, TooltipContent content, Vector2 scrollOffset)
        {
            Rect buttonRect = new Rect(
                (window.position.x + rect.x) - scrollOffset.x,
                (window.position.y + rect.y) - scrollOffset.y,
                rect.width,
                rect.height);

            TooltipEditor.Show(buttonRect, content);
        }