Version: 2019.4
Unity VR project template
XR API reference

Unity AR project template

Unity’s ARAugmented Reality (AR) uses computer graphics or video composited on top of a live video feed to augment the view and create interaction with real and virtual objects.
See in Glossary
project template provides a starting point for augmented reality development in Unity. The template pre-installs the right packages needed for AR development, and 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 is pre-configured for AR.

Unity directly supports the following AR platforms:

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

This project template uses AR Foundation, Unity’s framework for multiplatform AR development. For more information on how to get started with AR Foundation and add AR features to your Project, refer to the:

Using the AR project template

To use the AR 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 AR 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 rendering and quality settings are optimized for your target platform. See the 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
    table on this page.
  7. For information on how to add AR features to your Project, see the AR Foundation package documentation.

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
ARCore devices Android ARCore
ARKit devices iOSApple’s mobile operating system. More info
See in Glossary
ARKit
HoloLens UWP Windows Mixed Reality
Magic Leap One Lumin Magic Leap

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
ARCore devices OpenGL ES 3.0 N/A
ARKit devices Metal N/A
HoloLens DX11 Single Pass Instanced
Magic Leap One OpenGL ES 3.2 Single Pass Instanced

Removing the example Assets

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 disconnected script from the ARSessionOrigin GameObjectThe 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
    .
Unity VR project template
XR API reference