Search Unity

Mobile Keyboard Basics [SOLVED]

Discussion in 'iOS and tvOS' started by renman3000, May 24, 2021.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    SOLVED:
    Code (csharp):
    1.  
    2. //open
    3. keyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Social, true, false, false, false);
    4.  
    5.  
    6. ///monitor intput
    7.               if (TouchScreenKeyboard.visible)
    8.                 {
    9.            
    10.                     if (keyboard.status == TouchScreenKeyboard.Status.Done){
    11.                    //close
    12.                         completeEnter();
    13.                     }
    14.                     else{
    15.            //update custom text
    16.                         mobile_updateWord();
    17.                     }
    18.  
    19.  
    20.                 }
    21.  
    22.  
    23.  

    THANKS
     
    Last edited: May 24, 2021