Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Mobile, Open Keyboard with one press.

Discussion in 'Input System' started by JareBear12418, Dec 26, 2020.

  1. JareBear12418

    JareBear12418

    Joined:
    Mar 13, 2018
    Posts:
    2
    Is there a way to open up a keyboard on a Mobile device (IOS and/or Android) when pressing a button. Below are images of what happens by default, which is NOT what I want to happen, I DON'T want to press the text box, and then press it again below.

    I want to press it, and the keyboard pops up and edit the text.

    Is there some way to achieve this threw unity by some simple one line code?

    Possible solutions could be making a special keyboard for the app, but I don't want to such a solution as I want it to be more native to the Mobile device.

    I've looked around here:
    https://docs.unity3d.com/ScriptReference/TouchScreenKeyboard.Open.html
    and
    https://docs.unity3d.com/ScriptReference/TouchScreenKeyboardType.Default.html

    But these don't open up the keyboard in ONE press, I still have to press TWO times to actually type something.
     

    Attached Files: