campfireunion / VRKeys

A drum-style keyboard for VR in Unity
https://assetstore.unity.com/packages/tools/input-management/vrkeys-99222
MIT License
98 stars 14 forks source link
dvorak htc-vive keyboard oculus oculus-touch qwerty text-input unity unity3d virtualreality vr

VRKeys - A drum-style keyboard for VR in Unity

VRKeys Screenshot (click image for video)

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.

Features

Manual installation

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:

  1. Download VRKeys.unitypackage
  2. Import TextMesh Pro via Window > TextMeshPro > Import TMP Essential Resources
  3. Import into your project via Assets > Import Package > Custom Package
  4. Open Assets/VRKeys/Scenes/Example Scene.unity to see a working example scene
  5. Example usage can be found in DemoScene.cs

Performance

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.