`OnGUI` is called multiple times per frame, once for each event that needs to be handled. I guess you can dump the text out when the user presses return.
↧