Part 1 — Create Project

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…


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.

Image description

Install SteamVR Plugin

Click “Add to My Asset” on the Unity Asset Store.

https://assetstore.unity.com/packages/tools/integration/steamvr-plugin-32647

Image description

Then click “Open in Unity” on the asset store page.
Unity Package Manager will be shown, click Import.

Image description

Click OK in this dialog and restart the Unity project as instructed.

Image description

The installation is complete if the Assets/SteamVR folder is created.

Image description

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.

Image description

Create empty scene

Delete all objects from the scene.

Image description

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Part 1 — Create Project." kurohuku | Sciencx - Sunday June 16, 2024, https://www.scien.cx/2024/06/16/part-1-create-project/
HARVARD
kurohuku | Sciencx Sunday June 16, 2024 » Part 1 — Create Project., viewed ,<https://www.scien.cx/2024/06/16/part-1-create-project/>
VANCOUVER
kurohuku | Sciencx - » Part 1 — Create Project. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/16/part-1-create-project/
CHICAGO
" » Part 1 — Create Project." kurohuku | Sciencx - Accessed . https://www.scien.cx/2024/06/16/part-1-create-project/
IEEE
" » Part 1 — Create Project." kurohuku | Sciencx [Online]. Available: https://www.scien.cx/2024/06/16/part-1-create-project/. [Accessed: ]
rf:citation
» Part 1 — Create Project | kurohuku | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.