GUI button event handler methods

once again

Kindly is there a way or script that that act as a listener on the GUI.buttons, so when it pressed do some thing and when the mouse over do some thing and when roll out do something etc. ???

thank you all

Please don’t start new threads asking the same question again.

Your question is already answered in your previously posted thread: http://forum.unity3d.com/viewtopic.php?t=18574

The unity GUI system does not have separate events. There is only one event handling function, and it’s called OnGUI.

This is an example of an immediate mode GUI as opposed to a retained mode GUI. In immediate mode GUIs, you are basically redrawing and recreating the user interface on each call to the OnGUI function. If you google “imgui” you will find more resources and information on the concept.

Btw… moving this thread to the UniyGUI forum in 3, 2, 1…

sorry :sweat_smile: