The VRTK.Prefabs repo has been deprecated and will no longer receive any future updates. The Tilia repos are now recommended to be used in place of the VRTK.Prefabs repo. A complete list of the Tilia repos can be found at https://www.vrtk.io/tilia.html along with installation instructions. Some of the prefabs found in the VRTK.Prefabs repo may not exist at Tilia repos at this time, but they are being worked on in due course and will be supported moving forward.
A collection of productive prefabs for rapidly building spatial computing solutions in the Unity software.
The VRTK Prefabs aim to make building spatial computing solutions in the Unity software fast and easy for beginners as well as experienced developers.
Requires the Unity software version
2018.3.10f1
(or above).
- Create a new project in the Unity software version
2018.3.10f1
(or above) using3D Template
or open an existing project. - Ensure
Virtual Reality Supported
is checked:- In the Unity software select
Main Menu -> Edit -> Project Settings
to open theProject Settings
window. - Select
Player
from the left hand menu in theProject Settings
window. - In the
Player
settings panel expandXR Settings
. - In
XR Settings
ensure theVirtual Reality Supported
option is checked.
- In the Unity software select
- 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
Note: Unity
2019.1
(or above) requires additional project setup before importing the VRTK Prefabs.
- Download and install the
XR Legacy Input Helpers
from the Unity Package Manager.- In the Unity software select
Main Menu -> Window -> Package Manager
to open thePackage Manager
window. - Select
XR Legacy Input Helpers
from thePackages
tab in thePackage Manager
window. - Click the
Install
button located in the bottom right of thePackage Manager
window. - The
XR Legacy Input Helpers
package will now download and install into the project.
- In the Unity software select
-
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.vrtk.prefabs
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.vrtk.prefabs": "X.Y.Z", ... } }
- Ensure
-
Switch back to the Unity software and wait for it to finish importing the added package.
The package will show up in the Unity Package Manager UI once the above steps have been carried out. 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.
Visit the Academy for a collection of educational content to help you get the most out of building spatial computing solutions with the VRTK Prefabs.
Please refer to the Extend Reality Contributing guidelines and the Unity project coding conventions.
Please refer to the Extend Reality Code of Conduct.
Code released under the MIT License.
These materials are not sponsored by or affiliated with Unity Technologies or its affiliates. "Unity" is a trademark or registered trademark of Unity Technologies or its affiliates in the U.S. and elsewhere.