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

IPhone Keyboard hiding

Discussion in 'iOS and tvOS' started by Unity_gamer, Apr 17, 2012.

  1. Unity_gamer

    Unity_gamer

    Joined:
    Aug 19, 2011
    Posts:
    30
    Hi all,

    I am just wondering is there is any way to hide the Keyboard through script.I tried to search for this but didn't find any thing useful.The Iphone keyboard Scripting document also not saying any thing regarding closing the Keyboard.Is there any option to hide the keyboard through script??:confused:


    Thanks..
     
  2. shinki

    shinki

    Joined:
    May 20, 2012
    Posts:
    1
    Use touchScreenKeyboard.active = false
     
  3. Rob4507

    Rob4507

    Joined:
    Aug 29, 2007
    Posts:
    53
    Thank God for this forum and thank you Shinki! I tried lots of things but I feel stupid because I didn't try that. You just fixed an unrelated problem I was having that was killing me.

    Cheers!
     
  4. sadiq_xstpl

    sadiq_xstpl

    Joined:
    Jan 10, 2014
    Posts:
    2
    How to get this work I am getting
    Assets/ContactForm.cs(55,45): error CS0120: An object reference is required to access non-static member `UnityEngine.TouchScreenKeyboard.active'

    Error
     
  5. RDx

    RDx

    Joined:
    Oct 17, 2012
    Posts:
    1
    Hello,

    I am planning an ingame custom keypad.I need to block the IOS TouchKeyboard from popping up when clicking on GUI.Textfield .I could nt find a workaround for this.
    Any help would be appreciated !

    Thanks!