Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

InputField, why is selectAll() protected and public in the InputField docs?

Discussion in 'Documentation' started by shuao23, Jun 2, 2015.

  1. shuao23

    shuao23

    Joined:
    Dec 19, 2013
    Posts:
    33
    I really want to use the selectAll() function. However, the function is protected. In the docs however, it says that it is public but also protected
     
  2. aleks_unity

    aleks_unity

    Unity tech writer/programmer

    Joined:
    Jan 12, 2012
    Posts:
    25
    shuao23 likes this.
  3. shuao23

    shuao23

    Joined:
    Dec 19, 2013
    Posts:
    33
    I do not remember specifically but I think that the UI docs has a couple of mistakes such as this one (private methods stated as public in the docs etc..)
     
    aleks_unity likes this.
  4. tuncturel

    tuncturel

    Joined:
    Jul 20, 2012
    Posts:
    47
    Hi there! I need some help.

    First and foremost this function is still protected after 4 years when it was reported. It would be really nice if you could fix it.

    Here's my issue!

    We've been using the InputField.Select() which selects all the text in the input field on WindowsEditor and selects nothing on an Android build and puts the caret at the start instead.

    I can't find a way to select the pre-existing text in the input field on Android. Any help is appreciated.
     
  5. tuncturel

    tuncturel

    Joined:
    Jul 20, 2012
    Posts:
    47