Creating a new Unity project

Note: This is page contains instructions for creating a new project. If you are modifying your existing project, please refer to ”Updating an existing Unity project”. Before creating the project, ensure the Unity Plugin is installed correctly.

In order to show a default scene in the Varjo headset, complete the following steps: 

  1. Create new Unity project as usual 
  2. Save the project and close Unity.
  3. Unzip the Varjo SDK directly into the root directory of the project (overwrite any duplicate files).
  4. Reopen the project in Unity.
  5. Ensure the Project Settings align with Varjo’s required settings.
  6. Drag VarjoUser prefab to the scene 
  7. Remove MainCamera from the scene 
  8. Hit Play to test. 

 

Updating plugin

When updating the Varjo headset for Unity, close Unity and delete the following files and folders inside the Assets folder before unzipping the updated plugin: 

  • Folders: 
    • Varjo 
    • VarjoExamples 
    • VarjoSteamVR 
  • Files: 
    • Varjo.meta 
    • VarjoExamples.meta 
    • VarjoSteamVR.meta 

Do not directly edit the prefabs and scripts in these folders as they will be replaced with each update. 

If you leave Unity open, it will lock the plugin DLL files and the update will fail. If you don’t delete the previous files, there might be unwanted files left from the previous plugin version.