Creating a new Unity project

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

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

  1. Create new Unity project like you would usually do 
  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, please 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 in every update. 

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