Forum Discussion
laszlo_leber
5 years agoProtege
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!
10 Replies
Replies have been turned off for this discussion
- laszlo_leberProtegeSo my question is, that how can I make it to work? :)
- laszlo_leberProtegeToday I implemented an own virtual keyboard but if anybody knows the solution how to use the built-in keyboard, share it please :)
- shienaProtegeLook here
https://forums.oculusvr.com/developer/discussion/comment/757854/#Comment_757854
Maybe some flag wasn't enabled, so I restarted Oculus Quest and it's ready to be used. - Carolina_VRHonored GuestHi!
I updated Oculus Integration in my project but can see these options: "Focus aware" and "Require system keyboard" on the OVR camera rig.
Unity v.2019.2.11f1.
How does it look for you guys?
Thaaanks!- vrbuildExplorer
You are configured as rift, and it's need to be android(quest),
it's not available for rift, only 3rd-party solution available.
- shienaProtegePlease switch to Android platform
- CosmicStudHonored GuestYes doesn't work for me either, but its probably due to my project not using the camera rig from Oculus integration, I use the Unity cross platform version. I call through scripting, it seems the input focus event is fired for the initial string but no keyboard appears. Prob needing the camera rig :/
- shienaProtegeWhen I build the following project and focus InputFiled, the keyboard appeared.
* Unity2019.4.14fscene: Assets/VR%20Examples/Scenes/UI Interaction.unity* without Oculus Integration* add oculus.software.overlay_keyboard feature to AndroidManifest.xml<uses-feature android:name="oculus.software.overlay_keyboard" android:required="false"/>* Quest Build 20.0 / Quest2 Build 23.0- VTDAExplorer
Are you adding oculus.software.overlay_keyboard feature to AndroidManifest.xml directly after a build, or via an xml file in the Unity project? I'd be interested to know how to automate this functionality being added to a build w/o manually editing an xml file after every build.
- VTDAExplorer
Ah, I see how to add a custom manifest now: https://github.com/Unity-Technologies/XR-Interaction-Toolkit-Examples#androidoculus
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
- 4 years ago
- 9 months ago
- 1 year ago
- 2 years ago