Forum Discussion
AlienCurv
3 years agoProtege
Virtual keyboard not displaying with UI element (OVR 1.70.0)
I'm pulling my hair out - unable to get the virtual keyboard to display when I select a UI element. I'm probably missing something that maybe one of you will notice. This is the support document I'm ...
AlienCurv
3 years agoProtege
Oh, I'm losing my mind on this one, haha. When I search google for "unity oculus quest 2 keyboard not showing", I get people who suggest checking the "requires system keyboard" option. But I have it checked, and no go. I must be missing something, but I can't figure out what. We have the app completed, and this is the only thing holding us from publishing.
Does anyone have suggestions of where I can look?
- AlienCurv3 years agoProtege
BTW, this is the support article I'm following which is not opening the keyboard: Enable Keyboard Overlay | Oculus Developers
- AlienCurv3 years agoProtege
I'm programmatically displaying the keyboard according to the keyboard overlay developer document. But, once the keyboard is displayed and DONE is pressed, the app loses focus forever. Pressing the menu button on the right controller causes the app to close and returns me to the main menu.
Here's my code for the text input in the GUI canvas in an attempt to programmatically display an on-screen keyboard.
using UnityEngine; using UnityEngine.UI; namespace MainMenu { public class tbIPAddress : MonoBehaviour { TouchScreenKeyboard _key; void Start() { GetComponent<InputField>().text = Assets.StaticVariables._IP_ADDRESS; GetComponent<InputField>().onValueChanged.AddListener(saveValue); } private void OnDestroy() { if (_key != null && _key.active) _key.active = false; GetComponent<InputField>().onValueChanged.RemoveAllListeners(); } void saveValue(string v) { Assets.StaticVariables._IP_ADDRESS = v; } private void Update() { var tb = GetComponent<InputField>(); if (tb.isFocused && (_key == null || !_key.active)) _key = TouchScreenKeyboard.Open(Assets.StaticVariables._IP_ADDRESS, TouchScreenKeyboardType.DecimalPad); if (_key != null && _key.active) tb.text = _key.text; } } }- AlienCurv3 years agoProtege
I created a new empty project, and it still won't work. As per the overlay keyboard support manual on the Oculus developer guide, I should be able to see an onscreen keyboard when I select a text input UI element. It's not happening. I started entirely from scratch in a test project, and I can choose the text, but no keyboard is displayed.
I added a button, and it works. Pressing the button triggers my event, so the event system is working. Why is the keyboard not displaying?
1) I have a working UIHelper with a raycast laser
2) My camera rig has requires a system keyboard checked
3) My UI canvas has the ovr ray caster added and configured to use the laser pointer
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago