Level: Beginner
Reading Time: 5 minutes
Checked with:
- Unity 2019.4.40f1
- Vive Wave XR Plugin 5.2.0-r.8
- Vive Wave XR Plugin - Essence 5.2.0-r.8
- Vive Wave XR Plugin - Native 5.2.0-r.8
The WaveXR Plugin asset for the Unity software provides direct access to the WaveXR hardware API and therefore offers a number of additional features outside of the default Unity software XR offering.
This package contains the following functionality:
- CameraRig wrapper so a WaveXR specific CameraRig prefab can be used with the Tilia.CameraRigs.TrackedAlias.Unity.
- Controller haptic feedback utilizing
WXRDevice
.
You may skip this step if you already have a Unity project to import the package into.
- Create a new project in the Unity software version
2019.4.40f1
(or above) using3D Template
or open an existing project.
- Ensure the project
Scripting Runtime Version
is set to.NET 4.x Equivalent
:- In the Unity software select
Main Menu -> Edit -> Project Settings
to open theProject Settings
inspector. - Select
Player
from the left hand menu in theProject Settings
window. - In the
Player
settings panel expandOther Settings
. - Ensure the
Scripting Runtime Version
is set to.NET 4.x Equivalent
.
- In the Unity software select
- Visit the HTC Vive website and follow the SDK Installation Instructions and update the Unity project Scoped Registries to include the HTC Vive registry.
The Tilia.SDK.WaveXR.Unity package will automatically include the required WaveXR Plugin packages so they do not need manually installing.
-
Navigate to the
Packages
directory of your project. -
Adjust the project manifest file
manifest.json
in a text editor.- Ensure
https://registry.npmjs.org/
is part ofscopedRegistries
.- Ensure
io.extendreality
is part ofscopes
.
- Ensure
- Add
io.extendreality.tilia.sdk.wavexr.unity
todependencies
, stating the latest version.
A minimal example ends up looking like this. Please note that the version
X.Y.Z
stated here is to be replaced with the latest released version which is currently .{ "scopedRegistries": [ { "name": "npmjs", "url": "https://registry.npmjs.org/", "scopes": [ "io.extendreality" ] } ], "dependencies": { "io.extendreality.tilia.sdk.wavexr.unity": "X.Y.Z", ... } }
- Ensure
-
Switch back to the Unity software and wait for it to finish importing the added package.
The WaveXR Plugin package will now be available in your Unity project Packages
directory ready for use in your project.
The package will now also show up in the Unity Package Manager UI. From then on the package can be updated by selecting the package in the Unity Package Manager and clicking on the Update
button or using the version selection UI.