Adding the Vive Registry
Instructions
Original instructions can be found here: https://developer.vive.com/resources/vive-wave/sdk/320/vive-wave-xr-plugin/vive-registry/
This is based on version 3.2.0 of the Vive SDK.
VIVE Registry
Unity is transitioning to package manager for better modularization and package management support. The package manager gets packages from registries. By default, Unity package manager connects to Unity official registry. Meanwhile, Unity provides scopedRegistry support for 3rd-parties to set up their own registries.
To let your project access packages from VIVE, you can add VIVE registry by either of the following methods: editing manifest.jsonÂ
manually, or using our VIVE Registry Tool
Manually Editing manifest.json
OpenÂ
Packages/manifest.jsonÂ
in your projectAdd scopedRegistry field to it:
{
"dependencies": {
"com.unity.cinemachine": "1.0.0",
"com.unity.2d.common": "1.0.0",
"com.unity.2d.animation": "1.0.0",
"com.my-company.bar": "1.0.0"
},
"scopedRegistries": [
{
"name": "VIVE",
"url": "https://npm-registry.vive.com/",
"scopes": [
"com.htc.upm"
]
}
]
}
Then, open your Unity package manager window, you can browse packages from VIVE in it.
VIVE Registry Tool
Requirements
Unity 2019.1 or newer
Installation
Download the *.unitypackageÂ
from one of the following sources:
Open your project, clickÂ
Assets/Import Package/Custom PackageÂ
in the menu, or drag theÂ*.unitypackageÂ
onto your Unity editor, to import it.
Â
After importing, the following window will show up automatically.
Â
After adding the URL, Unity package manager will be automatically opened. Wait for it to refresh the package list then you’re ready to discover the packages from VIVE.
Showing Preview Packages
If you want to see packages in preview, remember to check Show preview packagesÂ
for the package manager.
Before 2020.1
2020.1 and Newer
Switching to My Registries
Only in Unity 2020.1 and newer, packages from scoped registries will be listed in another place called My RegistriesÂ
.
Related Articles
Â