Version: 2019.4
Universal Render Pipeline compatibility in XR
Unity AR project template

Unity VR project template

Unity’s VR project template provides a starting point for virtual realityA system that immerses users in an artificial 3D world of realistic images and sounds, using a headset and motion tracking. More info
See in Glossary
development in Unity. The template pre-installs the packages you need for VR development and is pre-configured with headset and controller tracking in the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
hierarchy.

Unity directly supports the following VR platforms:

For more information on how to start developing apps for these platforms in Unity, refer to their documentation in the list above.

If you are planning to target Valve’s OpenVR platform, you must download Valve’s OpenVR Unity XR Plugin and their SteamVR Unity Plugin for input.

Using the VR project template

To use the VR project template, follow these steps:

  1. Install Unity 2019 LTS and make sure you add the right build targets for each platform you plan to deploy to. See the Supported build targets table on this page for more information.
  2. From the Unity Hub, click the dropdown next to New and create a new project in Unity 2019.4 LTS.
  3. Select the VR template and name your Project.
  4. Click Create.
  5. After your Project has been created, from Unity’s main menu, go to Edit > Project Settings > XR Plug-in Management, and select the platforms you plan to deploy to.
  6. Make sure renderingThe process of drawing graphics to the screen (or to a render texture). By default, the main camera in Unity renders its view to the screen. More info
    See in Glossary
    and quality settings are optimized for your target platform. See the Rendering and quality settings table on this page.

Supported build targets

Device Player type Plug-inA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary
provider
Oculus Quest Android Oculus
Oculus Rift & Rift S Standalone Oculus
Windows Mixed Reality VR UWP or 32-bit Windows Windows Mixed Reality

Rendering and quality settings

Platform Graphics API Stereo rendering modeA Standard Shader Material parameter that allows you to choose whether the object uses transparency, and if so, which type of blending mode to use. More info
See in Glossary
Oculus Quest OpenGL ES 3.0 Multiview
Oculus Rift & Rift S DX11 Single pass instanced
Windows Mixed Reality VR DX11 Single pass instanced

Removing the example Assets from the Scene

If you want to completely remove the example Assets from your Project, follow these steps:

  1. In the Project windowA window that shows the contents of your Assets folder (Project tab) More info
    See in Glossary
    , open the Assets folder.
  2. Right-click the ExampleAssets folder.
  3. Click Delete.
  4. In the pop-up that appears, click Delete.
  5. Make sure to remove the XRController GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
    See in Glossary
    in the Scene InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
    See in Glossary
    .
Universal Render Pipeline compatibility in XR
Unity AR project template