Called by the Unity engine during the GUI rendering phase. Note that OnGUI() is called multiple times per frame in response to GUI events. The Layout and Repaint events are processed first, followed by a Layout and keyboard/mouse event for each input event.