Android default keyboard is popping up in front of the screen. i used this script to turn it off manually. It is turning off at the same time, keyboard is popping up on the screen of few millisecond for some times whenever I click Input field. I put this script under DontDestroyOnLoad.Kindly help me out, I cant update the SDK instantly, since I have been working on this project for 6 months and I don't have time to make changes on Switching SDK.
I am using unity 2019.4.XX
SDK version (v2- deprecaed)
TouchScreenKeyboard m_keyboard;
bool turnOff = false;
void Awake()
{
DontDestroyOnLoad(this.gameObject);
}
void Start()
{
Invoke("DisableKeyBoard", 0.01f);
}
void LateUpdate()
{
if(turnOff)
m_keyboard.active = false;
}
private void DisableKeyBoard()
{
m_keyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, false);
turnOff = true;
}