0 votes
by (320 points)
edited by

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;
}

1 Answer

0 votes
by (15.1k points)

Dear developer,
Could you please tell us what device you use and what PUI version is?

by (320 points)
edited by

PUI v4.6.3
Neo 3 pro

by (15.1k points)

Dear developer,
Sorry, there is a problem with this code and it is no longer applicable.
Currently, need developing a virtual keyboard by yourself to avoid using input filed, or using the VR keyboard provided by us.
https://devanswers.pico-interactive.com/index.php?qa=4740&qa_1=newsletter-sogou-keyboard-available-pico-developer-platform&show=4740#q4740

...