Search Unity

GUI.FocusControl

Discussion in 'Immediate Mode GUI (IMGUI)' started by benblo, Oct 31, 2007.

  1. benblo

    benblo

    Joined:
    Aug 14, 2007
    Posts:
    476
    From the doc on GUI.FocusControl:
    What is a named control? How do I name a control?
    What I want to do is give focus to a specific textbox...
     
  2. shaun

    shaun

    Joined:
    Mar 23, 2007
    Posts:
    728
  3. benblo

    benblo

    Joined:
    Aug 14, 2007
    Posts:
    476
    Brilliant, thank you :) !
     
  4. WarpZone

    WarpZone

    Joined:
    Oct 29, 2007
    Posts:
    326
    So, how do I return focus to the application itself? (Without a mouse click, I mean.)

    I've tried GUI.FocusControl("") and GUI.FocusControl(null). Neither one does anything.

    We have GUI.UnfocusWindow()-- where's GUI.UnfocusControl()?