Search Unity

Unity UI Remove Keyboard Input Field.

Discussion in 'UGUI & TextMesh Pro' started by siddharth3322, Feb 13, 2018.

  1. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    At present I am getting this kind of keyboards for providing input in Android and iOS platforms.
    Please see below image:

    keyboard_issue.png


    I mean Input Field remain attached with keyboard for preview purpose. I want to remove this.
    For this purpose, I gone through this thread:
    https://answers.unity.com/questions/1408712/removing-android-keyboard-additional-input-field.html

    After this I have added following line of code:
    Code (CSharp):
    1. TouchScreenKeyboard.hideInput = true;
    Still there is no change into output, please provide me some direction into this.
     
    jackadavis likes this.
  2. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    In the link you provide it mentions this:
    "For example, it will not work for phone keypads and multi-line text input. In such cases, the edit box will always appear."
    Is yours kind of input is yours?
     
    Kaweri likes this.
  3. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
    As per you are seeing in above image - I have just opened normal keyboard and its normal input field that I have used.
    For each InputField, I require to set above value?
    Or it will work if I set static field value as like above!!
     
  4. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
  5. siddharth3322

    siddharth3322

    Joined:
    Nov 29, 2013
    Posts:
    1,049
  6. millefoliumink

    millefoliumink

    Joined:
    Aug 28, 2014
    Posts:
    139
    Any update on this? I'm grappling with this issue with TextMeshPro InputFields
     
    ABI16 likes this.
  7. soranhamidi1385

    soranhamidi1385

    Joined:
    Oct 4, 2020
    Posts:
    1
    Very good , Thanks !
     
  8. jackadavis

    jackadavis

    Joined:
    Jul 10, 2021
    Posts:
    1
    bibo0, joveem_ and siddharth3322 like this.