Search Unity

'UnityEngine.UI.InputField.ActivateInputField()' is inaccessible due to its protection level.

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Sep 3, 2014.

  1. Deleted User

    Deleted User

    Guest

    I've made a chat system for my game, but I can't figure out how to automatically focus on the InputField when I press T to display it. Is this implemented or am I missing something? :)

    Cheers.

    //EDIT
    'UnityEngine.UI.InputField.ActivateInputField()' is inaccessible due to its protection level.
    Anyway around this? Or will I have to wait?
     
    Last edited by a moderator: Sep 3, 2014
  2. MuNgLo

    MuNgLo

    Joined:
    Jan 27, 2014
    Posts:
    31
  3. Deleted User

    Deleted User

    Guest

    Well that helps, but I still have to press Enter to make it so I can type in it.
    I guess I'll have to wait until ActivateInputField() is public.
    Thanks anyway.
     
  4. Deleted User

    Deleted User

    Guest

    Unless there is a way that I can use BaseEvent's or something to trigger the InputField listening state. But I have no idea how to use that.

    EventSystemManager.currentSystem.SetSelectedGameObject( input.gameObject, (SOMETHING THAT TRIGGERS THE LISTENING STATE));