Search Unity

issue with GUI.Box

Discussion in 'Immediate Mode GUI (IMGUI)' started by raoul, Jan 17, 2008.

  1. raoul

    raoul

    Joined:
    Jul 14, 2007
    Posts:
    6,735
    Code (csharp):
    1.  
    2. var str : String;
    3. ...
    4.  
    5. GUI.Box (50, 50, 100, 25, str);
    6. str = GUI.TextField (50, 100, 100, 25, str);
    7.  
    Code (csharp):
    1.  
    2. var str : String;
    3. ...
    4.  
    5. GUI.Label (50, 50, 100, 25, str);
    6. str = GUI.TextField (50, 100, 100, 25, str);
    7.  
    In the first example focus on the GUI Textfield is lost after each keystroke. But in the second example, when using a label instead of a Box all is fine. This seems wrong?
     
  2. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    Hi...

    That on is fixed in the next update
     
  3. raoul

    raoul

    Joined:
    Jul 14, 2007
    Posts:
    6,735
    Thanks, then I will skip this part for now. :D