Is there a reason for GUI.tooltip only being available in EventType.Repaint? The reason I’m asking is because I wanted to see if a mouse clicked on a gui element once or twice, and to know if it is with the mouse over, I used tooltip. However, the clickCount is only available in EventType.MouseDown, which means that they aren’t both active at the same time.
Well, for the click count I could surely use that, it’s just my mind hasn’t got quite use to something like GUILayout.Button( “click me”, “label” ); hehe
But I need to use guitooltip also, because I want to select a whole line, which is made of various strings, and I have to use a mechanism to know if I’m hover any of them to highlight the others. Here’s a screenshot of what I did:
I got it working with GUILayout.Boxs and MouseDown + clickCount, but since it is kind of ugly, I’ll re-implement it with Button just to look cleaner.