Hi, I have this piece of code
public void Start()
mw = new Rect(10, 10, 300, 300);
void func(int id)
GUILayout.Button(new GUIContent("A", "B"));
public void OnGUI()
mw = GUILayout.Window(10, mw, func, "aaa");
GUI.Label(new Rect(330, Screen.height - Input.mousePosition.y, 300, 50), GUI.tooltip);
the logic is simple: display a window with a button and show a tooltip when the mouse hovers over the button. of course it doesn't work. what am I missing?
what happens: the window and the button inside it are displayed.
what doesn't happen: the tooltip is not shown when i hover over the button
Sep 07 '10 at 08:39 AM