Is it possible to simulate an mouse press so that it will be picked up by the GUI? In other words; the ‘computer’ presses a GUI button.
could you be more specific as to what you are trying to accomplish? are you looking to change a gui aspect when an event in the world takes place?
No, what I mean is:
The OnGUI() method is called several times per frame. Every time it’s due to another event, like ‘repaint’, ‘Layout’, or the press of a button. If you press the mousebutton, the OnGUI is fired and the Event.Current will be something like ‘Mouse_button’.
Now, I want to fire such a button event from code, so that the OnGUI is called with that Event.
So, simply stated; can I simulate a leftmouse button press event?