webxr-input-profiles-loader icon indicating copy to clipboard operation
webxr-input-profiles-loader copied to clipboard

WebXR Input Profiles Loader in Unity. Based on https://github.com/immersive-web/webxr-input-profiles

WebXR Input Profiles Loader

WebXR Input Profiles Loader in Unity. Based on WebXR Input Profiles.

You can try the demo here.

The package is intended to be used with WebXR exporters in general, and not only with WebXR Export.

The package uses glTFast to load the models, and Unity's package of Newtonsoft Json.NET to parse the profiles.

Downloads

You can get the package from openupm.

Setting package using OpenUPM

Set a Scoped Registry in Project Settings > Package Manager for OpenUPM.

Name: OpenUPM
URL: https://package.openupm.com
Scope(s): com.de-panther

Then in Window > Package Manager selecting Packages: My Registries and the WebXR Input Profiles Loader package would be available for install.

Troubleshooting

You might need to add Shader Variants of the Input Profiles Models to the build for the shaders to work. More info about that can be found at the glTFast docs.

You can use glTFShaderVariantsURP, glTFShaderVariantsLegacyURP or glTFShaderVariantsBuiltInRP in Project Settings > Graphics > Preloaded Shaders depending on the active render pipeline.

Supported WebXR Exporters