VRKeys is an open source keyboard interface for single-line text input in VR, made in Unity and available for free in the Unity Asset Store.
- Updated for Unity 2019.x
- Works with both Oculus Touch and HTC Vive
- Drum-style keyboard input
- Grab to adjust position and scale
- Shift key for capitalization and special characters
- Special @ and .com keys
- Easy input validation, info, and confirmation messages
- Ability to enable/disable input while validating or submitting
- Alternate keyboard layouts for i18n (Dvorak & Azerty for French included)
- Demo scene shows how to integrate into your own projects.
In addition to the version on the Unity Asset Store, you can manually install VRKeys into an existing VR project (assumes VR support is enabled in your project) via:
- Download VRKeys.unitypackage
- Import TextMesh Pro via Window > TextMeshPro > Import TMP Essential Resources
- Import into your project via Assets > Import Package > Custom Package
- Open
Assets/VRKeys/Scenes/Example Scene.unity
to see a working example scene - Example usage can be found in DemoScene.cs
When integrating VRKeys into your own scenes, assign a camera to the Event Camera on the VRKeys > Canvas object.
This prevents Unity from defaulting to calling Camera.main
multiple times per frame, which in turn calls
Object.FindObjectWithTag
on each access. For more info, see point 3 in these Unity UI optimization tips.
Brought to you by Flipside XR.