24 How to disable Android default keyboard in Unity application¶
The system keyboard can be disabled with the following code:
TouchScreenKeyboard m_keyboard;
void Start()
{
m_keyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, false);
}
void LateUpdate()
{
m_keyboard.active = false;
}
Note: If the app is developed in Unity, long pressing the selected Input Field will cause the keyboard to pop up briefly and intermittently.