Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VishalFuturristic's avatar
2 years ago
Solved

System keyboard not opening every time in Meta quest 3 device

Hello, I want to use system keyboard to type in unity text mesh pro input field. when i clicked in input field some time  it open native keyboard and sometime not (I am using meta quest 3). Is it kno...
  • jtriveri's avatar
    2 years ago

    I'm running into this issue too. I haven't found a proper solution in the several days I've spent trying to fix it.

    This is my jank fix - attach this script to all your text fields (I use TMP input fields). It reopens the keyboard if it doesn't appear properly. Please don't mark this as the solution though as this is a horrible workaround

     

     

     

    using System.Collections;
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using TMPro;
    using UnityEngine;
    
    public class OculusSystemKeyboardJankFix : MonoBehaviour
    {
    	private TMP_InputField field;
    
    	private void Awake()
    	{
    		field = GetComponent<TMP_InputField>();
    
    		field.onSelect.AddListener(s => ShowKeyboardDelay());
    	}
    
    	private async void ShowKeyboardDelay()
    	{
    		await Task.Delay(500);
    
    		if (!TouchScreenKeyboard.visible)
    		{
    			field.ActivateInputField();
    			TouchScreenKeyboard.Open(field.text, TouchScreenKeyboardType.ASCIICapable);
    		}
    	}
    }