This content originally appeared on DEV Community and was authored by kurohuku
Create a new Unity project
Create a new project on Unity Hub.
Select 3D project template.
Install SteamVR Plugin
Click “Add to My Asset” on the Unity Asset Store.
https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647
Then click “Open in Unity” on the asset store page.
Unity Package Manager will be shown, click Import.
Click OK in this dialog and restart the Unity project as instructed.
The installation is complete if the Assets/SteamVR folder is created.
Optional: If you don’t use the SteamVR Plugin
In this tutorial, we use the OpenVR files included in the SteamVR Plugin.
If you want to use the latest version of OpenVR or to have a minimal amount of files, download the following files from their GitHub repository.
- headers/openvr_api.cs
- bin/win64/openvr_api.dll (and other dlls you want to support)
Put the downloaded files inside the Assets folder.
Project setting
Open Edit > Project Settings > XR Plug-in Management.
Uncheck Initialize XR on Startup.
Create empty scene
Delete all objects from the scene.
Finally, the project setup is done! We will set up the OpenVR API in the next part.
This content originally appeared on DEV Community and was authored by kurohuku
kurohuku | Sciencx (2024-06-16T10:32:30+00:00) Part 1 — Create Project. Retrieved from https://www.scien.cx/2024/06/16/part-1-create-project/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.