I’m developing an app for MetaQuest2 and using OpenXR + XR Interaction Toolkit
I’m struggling with the virtual keyboard as it never seem to show up when i interact with an TMPro InputField
I also tried to bind the open keyboard method by script but no success
When I implement it this way, it is able to start up properly. But after launching the application, evoking the keyboard causes the program to shake and wobble along with the headset.
I had the same issue with an older project using the XR Interaction Toolkit for the Oculus Quest. The keyboard wouldn’t show up or only after pressing the InputField for 3-4 times. For some reason the InputField deselects immediately after pressing it, so the keyboard wouldn’t show up. I couldn’t find a solution, so my workaround was to put a transparent Button on top of the InputField, and call InputField.Select() on buttonclick.
Just installed the Spatial Keyboard sample of the XRI 3.0.5 package, I got bunch of compile errors :
Assets\Samples\XR Interaction Toolkit\3.0.5\Spatial Keyboard\Editor\Scripts\KeyMappingPropertyDrawer.cs(3,42): error CS0234: The type or namespace name ‘Samples’ does not exist in the namespace ‘UnityEngine.XR.Interaction.Toolkit’ (are you missing an assembly reference?)
Assets\Samples\XR Interaction Toolkit\3.0.5\Spatial Keyboard\Editor\Scripts\XRKeyboardConfigEditor.cs(3,42): error CS0234: The type or namespace name ‘Samples’ does not exist in the namespace ‘UnityEngine.XR.Interaction.Toolkit’ (are you missing an assembly reference?)
Assets\Samples\XR Interaction Toolkit\3.0.5\Spatial Keyboard\Editor\Scripts\XRKeyboardDisplayEditor.cs(3,42): error CS0234: The type or namespace name ‘Samples’ does not exist in the namespace ‘UnityEngine.XR.Interaction.Toolkit’ (are you missing an assembly reference?)
Already tried that before posting, I confirm that installing the SpatialKeybord sample of the 3.0.5 version of the package is instantly throwing errors, even on fresh new project.
v3.0.3 works correctly tho