Hi guys.. I'm looking to bind a key to the GUI.Button instead of having to click it?
In other words..
How can I connect the key "1" so when it is pressed, it does the same as the mouse click?
var btn1 : GUIStyle;
function OnGUI () {
if(GUI.Button (Rect (10,10,30,30), "", btn1))
{
print("Action!");
}