Search Unity

GUI styles and iOS keyboard input

Discussion in 'iOS and tvOS' started by yangmeng, Jan 10, 2012.

  1. yangmeng

    yangmeng

    Joined:
    Dec 5, 2006
    Posts:
    573
    When using this code:
    Code (csharp):
    1. textAreaString = GUI.TextArea (Rect (25, 25,400, 300), textAreaString, 500);
    The iOS keyboard lets me return to a new line of text, but when adding a GUI style with this code:
    Code (csharp):
    1. textAreaString = GUI.TextArea (Rect (25, 25,400, 300), textAreaString, 500, customGuiStyle);
    The return button closes the keyboard. Is this normal behavior? Is there a recommended workaround?
     
  2. mehowe7

    mehowe7

    Joined:
    Dec 30, 2009
    Posts:
    65
    Enter also closes the keyboard for me, but swell as closing it i want other events to happen such as the camera to move. have you managed to get this to work?