Detecting Which Button is Pressed on a Toolbar

Is it possible to detect which button on a toolbar is pressed? I can’t find a answer and this is the closest thing I’ve found and it’s no help.

Try using GUI.Toolbar. It returns an int which tells you what button is currently selected, then just check for a mouse press and use the int to determine what action to perform.

How about using the RepeatButton instead and build your own toolbar with it?

http://unity3d.com/support/documentation/ScriptReference/GUI.RepeatButton.html