DEV Community

kurohuku
kurohuku

Posted on • Updated on

SteamVR Overlay with Unity: Create Project

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 (or Download if it's first time).

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.

Top comments (1)

Collapse
 
reavoend profile image
Reavo End

Thanks for making this!

FYI on "Install SteamVR Plugin" step, you must first click "Download" before the "Import" button exists.