A simple Unity package project for enabling key entries in XR environments via a 3D keyboard
Please note that this package is meant to be a baseline for own implementations.
Expect a limited feature set!
However, it can be used to facilitate basic keyboard inputs in XR.
Download the Unity Package and install it into your project.
Done!
A demo scene can be found under Assets/XR-TactileKeyboard/Scenes
Upon entering you will be asked to install Text Mesh Pro
With compatible controllers you can use the grip buttons to control the finger pose!
Unity Package | tested version* |
---|---|
com.unity.xr.interaction.toolkit |
2.4.3 |
com.unity.xr.management |
4.4.0 |
com.unity.xr.openxr |
1.8.2 |
*the version used in the latest build |
Important:
- make sure the starter assets for the
com.unity.xr.interaction.toolkit
are present (you can install it via the Unity packet manager) - install
Text Mesh Pro
into the project when asked during scene opening
Right now the only available mapping is German.
However you can change the existing keys to a mapping of your choice!
Add a new Map type under Scripts\KeyboardScripts\KeyMaps\Mappings
and add it to the KeyMappingType
enum. After that you simply need to reference it in the KeyboardInfo
class.
What it can do
Basic input, such as characters and their "shifted" variants.
What it can NOT do
Input that requires to press Control, Alt or any other tertiary keys.