Search Unity

Set Inputfield focus

Discussion in 'UGUI & TextMesh Pro' started by Tazadar66, Nov 14, 2014.

  1. Tazadar66

    Tazadar66

    Joined:
    Aug 27, 2013
    Posts:
    57
    Hi everybody,

    I downloaded the latest version but my old code which was working before to set the focus on the inputfield is not working anymore :(

    Code (CSharp):
    1. EventSystem.current.SetSelectedGameObject(nameInput.gameObject);
    2. nameInput.OnPointerClick(new PointerEventData(EventSystem.current));
    Anyone knows how to make this work ?

    Thank you very much

    Taz.
     
  2. Kesh

    Kesh

    Joined:
    Jan 13, 2014
    Posts:
    21