- Home /
Question by
DaiMangouDev · Aug 24, 2015 at 05:52 PM ·
c#guibuttoneditorwindow
How to trigger button press on a button in an editor window by pressing the return key ?
I have been working with editor windows for a while now but I have no idea how to do this except creating my own button system.
if(GUI.button(new Rect(0,0,200,40),"")) {Debug.Log("Clicked");}
is there a way to perform the click just by pressing the return key ?
any ideas ?
Comment
Your answer
Follow this Question
Related Questions
How to make a or array of GUI.Button's? 1 Answer
How to fire gui button on mouse right release 2 Answers
How do I use GUI.BeginCLip() ? There is no documentation on docs.Unity 1 Answer
Can't find proper use of objectfield in a custom editor window (C#) 0 Answers
GUI.Button is acting funky. 2 Answers