How to Set Up SteamVR, Import Assets, and Develop for HTC Vive
Before you start making VR apps for Vive, you first have to set up SteamVR and Unity. We’ll explain how to do that so you can get building!
You can create your own amazing apps for the HTC Vive by following the setup instructions below. In other articles we cover setting up your controllers to assigning functions, grabbing objects and throwing or shooting with Vive. But before all of that, let’s cover how you get started. All you need is Unity, our step-by-step guide, and a Vive. Happy building!
|Download our 10-week VR Development with Unity Course Syllabus|
First, we have to make sure we have the right software at our fingertips. Download Unity for free here, and start a new 3D project. Inside Unity, head on over to the Asset Store tab and search “SteamVR” in the search field.
Download and import the SteamVR Plugin into your project. You may get a prompt saying “API Update Required.” To do that update, we’ll click on “I made a backup, go ahead!”
You should get another prompt with options for SteamVR_Settings to “Accept All” or “Ignore All.” Click on “Accept All,” and you’ll have the plugin imported and ready to go in your assets folder.
Add SteamVR to Your Scene
Now that you’re done downloading the tools you need, click on your project tab, then click on your assets folder > SteamVR > Prefabs. Clcik and drag SteamVR and CameraRig prefabs into your scene.
Since you’ve brought in your own camera rig in the previous step, you no longer need the Main Camera. Delete the Main Camera from the scene in the hierarchy tab.
Save the scene and your project. You’re now ready to get building for the HTC Vive!
We can help you get started with simple scripts in our blog, and check out our VR course syllabus to see what we cover in our course. We can take you from beginner to expert in 10 short weeks.
- Go to the Unity Asset Store tab in Unity and search “SteamVR” in the search field at the top.
- Download and import the SteamVR Plugin into your project.
- At the end of the import, you may see a prompt that says “API update required.” Click on “I made a backup, go ahead!”
- Another prompt titled “SteamVR_Settings” will give options to “Accept All” or “Ignore All.” Click on “Accept All.”
- Navigate to SteamVR > Prefabs in your Assets folder.
- Click and drag the SteamVR and CameraRig prefabs into your scene.
- Delete the Main Camera from your scene.
- Save the scene and your project. You now have a project ready to develop for the HTC Vive.