Enable Keyboard Overlay for Quest in Unity
Hey all!
I upgaded my Oculus integration in my Oculus Quest project to v19.1, and I would like to tryout the keyboard overlay in Unity.
So far I did the following steps in the project:
- Placed some InputField onto a Canvas
- Created the mechanism to be able to select the input fields in VR (with collider and raycast)
- enabled "focus aware", and set "Require system keyboard" on the OVR camera rig.
Unity version: 2019.4.5f1
When I click on the input field's collider, I manually call the focus on input field, but keyboard wont appear on the screen.
Unfortunately it's not working in my scene, but it's not working with the official Oculus UI scene too (checkbox and other elements are working), however as you can see on my image, the inside text is appeared in the textboxes, so my onclick event works perfectly.
Thank you for your help!
I upgaded my Oculus integration in my Oculus Quest project to v19.1, and I would like to tryout the keyboard overlay in Unity.
So far I did the following steps in the project:
- Placed some InputField onto a Canvas
- Created the mechanism to be able to select the input fields in VR (with collider and raycast)
- enabled "focus aware", and set "Require system keyboard" on the OVR camera rig.
Unity version: 2019.4.5f1
When I click on the input field's collider, I manually call the focus on input field, but keyboard wont appear on the screen.
I tried with the TouchScreenKeyboard.Open as well.
if (menuName == "ClickUsername")
{
this.GetComponent().ActivateInputField();
this.GetComponent().Select();
transform.GetChild(1).GetComponent().text = "inside";
transform.GetChild(2).GetComponent().text = "inside";
//overlayKeyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default);
}
Unfortunately it's not working in my scene, but it's not working with the official Oculus UI scene too (checkbox and other elements are working), however as you can see on my image, the inside text is appeared in the textboxes, so my onclick event works perfectly.
Thank you for your help!
