---
title: "Dev Environment Setup"
space: "Vignettes"
url: "https://factory.uga.edu/vignettes/ar-vr/dev-environment-setup"
updated: "2026-11-19"
---

# Getting Started with AR Development

---

## Contents

- Preamble
- Prerequisites
- Installing Unity
- Setting Up Your Project for AR Devlopment
- Setting Up Your Scene Environment
- Scene Editing
- Downloading Project Files

---

## Preamble

The goal of this kit is to give you a development pipeline that you will use to develop your AR applications and deploy them onto your Oculus Quest 2 headset. We will use the Unity game engine to organize our 3D models and animate them, and android development tools to build the app for Oculus Quest. This kit is based on unity 2022.3 LTS (long term support). In this kit, you will install Unity, Visual Studio and the Android SDK tools (through unity hub), then you will start a new project and add a 3D model. Finally, you will build the project and install it on your Quest headset. 

---

## Prerequisites

**A Laptop or PC**

The laptop / pc should have an internet connection to download the installer and to register an account with Unity Hub. These are the minimum requirements for the computer to run the Unity Editor (please note that the performance will vary depending on the complexity of the project):

- OS: Windows 7, 10 and 11 (4-bit versions only). Mac OS 10.14 +, Ubuntu 20.04, ubuntu 18.04
- CPU: Any CPU with x64 architecture
- Graphics API: DX100, DX11 and DX12 capable GPUs for windows, Metal capable Intel and AMD GPUs for MacOS and OpenGL 3.2+ or Vulkan capable, Nvidia and AMD GPUs for Linux systems.

A general recommendation for comfortable Unity usage is a minimum of 16 GB RAM, a dedicated GPU with 8 GB VRAM and core i7 intel CPU or AMD Ryzen &amp; series. Of course, the more powerful your hardware, the better the performance of your system!

**Meta Quest 2**

You should have the meta quest 2 already set-up. An in-depth guide for setting up the quest 2 can be found [here](https://www.meta.com/help/quest/articles/getting-started/getting-started-with-quest-2/?utm_source=developer.oculus.com&utm_medium=oculusredirect). 

In addition, developer mode should be enabled for it. Instructions for enabling developer mode on the quest 2 can be found [here](https://developer.oculus.com/documentation/native/android/mobile-device-setup/).

A USB-C cable is necessary for loading the software onto the quest.

---

**Unity Hub**

Installing unity is different from the usual software installation process in that you do not directly download an installation file. Rather, you will need to download and install unity hub which is a program that allows you to manage multiple unity installation(s) on your computer as well as managing your projects and making sure that they’re opened with the correct versions of unity.

To download unity hub, go to [https://unity.com/download](https://unity.com/download) and select your OS. Below are links for specific OS’s but you can find them on the download page:

- Windows: [https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe](https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe)
- Mac: [https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.dmg](https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.dmg)
- Linux: [https://docs.unity3d.com/hub/manual/InstallHub.html#install-hub-linux](https://docs.unity3d.com/hub/manual/InstallHub.html#install-hub-linux)  
  ![Screenshot 2023-11-16 at 2.29.50 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.29.50_PM.png)



Once the download has completed, run the installer and follow the instructions to install it in your preferred location. 

After the installation has completed, run unity hub. First we need to sign in if we have an account or create an account if we do not. Click on the drop-down arrow next to the user-account icon on the top-left conner of your unity hub window to bring up the menu. And select ‘sign in’ or ‘create account’ based on your requirements. You will be taken to a website away from the application. Follow the instructions there.

![Screenshot 2023-11-16 at 2.31.36 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.31.36_PM.png)

If a pop-up shows up asking you to allow unity to open the link, click on yes/allow. Once you are signed in and back on unity hub, an avatar with the initials of your name will appear on the top left corner and it gives you access a dropdown menu that allows you to manage your account as per the official [documentation](https://docs.unity3d.com/hub/manual/ManageProfile.html).  

**Activating your license**

Before we can start any projects or install unity, let us first activate a license (you cannot work on projects without a license) Unity have a free license that is useful for most purposes, unless you go commercial and sell multiple copies of the software that you develop.

Click on the cog icon to open preferences.

![Screenshot 2023-11-16 at 2.36.03 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.36.03_PM.png)

Then click on license, and then select Add

![Screenshot 2023-11-16 at 2.36.43 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.36.43_PM.png)

A new window will pop up. Select the license you want to install. In this case I clicked on “Get a free personal license”. Then, in the next pop-up window, read the terms of service and click on “Agree and get personal edition license”.

![Screenshot 2023-11-16 at 2.41.18 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.41.18_PM.png)

**Install the Editor**

Launch unity hub and click on installs, then click on install editor.

![Screenshot 2023-11-16 at 2.46.33 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.46.33_PM.png)

In the next screen, make sure that the “Official Release” tab is selected, and then click on the blue install button next to the version you would like to install. 

![Screenshot 2023-11-16 at 2.46.52 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.46.52_PM.png)

A new window pops up allowing you to pick optional modules to be installed.

Under **Dev Tools** check the box next to Microsoft Visual Studio Community 2022 (this is an Integrated Development Environment (IDE)) that you can use to edit code).

Under **Platforms** check the boxes next to Android build support (and make sure that the required Android SDK and NDK tools are also checked). This will allow us to build applications for the meta quest which runs android operating system.

![Screenshot 2023-11-16 at 2.48.25 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_2.48.25_PM.png)

In addition, check the box next to Windows Build Support (IL2CPP) - you will need to scroll down a little bit to get to it. Then click on continue to start the installation.

You will be prompted to accept the terms for the SDK tools and Visual Studio in the next screen. Read and accept both of them and continue with the installation.

A separate window might pop up to install Visual Studio Code, and when it does, let it finish installation.

**Create New Project**

Your work in Unity is organized under projects. Open Unity Hub and click on the projects menu, then click on new project.

![Screenshot 2023-11-16 at 3.03.19 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.03.19_PM.png)

A new window will launch displaying different templates that you can base your project on.

- Click on **All templates**
- Click on **3D core** to select the 3D core template
- Change the project name to a descriptive name e.g AR\_starter
- Click on **Create Project**

![Screenshot 2023-11-16 at 3.04.05 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.04.05_PM.png)

Unity Hub will launch Unity and load your new project. This will take a few minutes. Your first layout will look something like this:

![Screenshot 2023-11-16 at 3.05.01 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.05.01_PM.png)

This is the default view and let’s go through the purpose of each of the menus and windows :

- The title bar (labelled 1 in red), is displayed on the unity application’s window and contains information about the project, like:
  - The project name (AR\_starter in our case),
  - The currently open scene (sampleScene in this case). We’ll get to scenes later, so don’t worry about this yet.
  - The target OS that your application will be built for. In this case it’s windows, mac, Linux. We’ll change that in a bit to android because the Meta quest runs on android.
  - The version of unity that you are running.
- The menu bar (labelled 2 in blue) gives you access to a variety of menus that we’ll explore in detail as we start creating our application.
- **Game window**: this shows you how your application will look when viewed by your user. More accurately, it shows a rendering of all the cameras in your scene (it shows you what your cameras see)
- **Scene window:** This provides a 3D view of your environment, and it allows you to manipulate and position objects. You will spend a lot of time in the scene view.
- **Hierarchy:** It lists all the objects in your current scene showing the parent-child relationships and allowing you to easily organize them.
- **Inspector:** When you select an object in the scene view or hierarchy view, you can change its properties in the inspector window.
- **Project:** This offers a view of the project’s assets like scripts, textures, models, and it gives you an organization that is similar to the directory arrangement that your OS typically uses.
- **Console:** The console shows logs, warnings and errors generated during gameplay or development. It’s a good place to look at if things are not working as expected!

**Customizing Your Unity Layout**

Sometimes, the default unity configuration is not ideal, and you might want to customize how it looks. For example, I’m not happy with the placement and size of the game and scene windows. You can manually resize the windows by hovering over the edge or corner of the window you want to resize until the cursor changes to a double-headed arrow. Then click and drag the edge or corner to resize the window according to your preference.

The other option is to take advantage of unity’s layout presets. Layout presets are predefined configurations of the editor’s layout and window arrangement. You can do this by clicking on the layout drop down just above the inspector window. You will see some preset values. Let’s select my favorite, the **2 by 3** set up.

![Screenshot 2023-11-16 at 3.12.19 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.12.19_PM.png)

I like this layout because it allocates more space for the scene view and the game view and the hierarchy and inspector windows are close to each other. Please note that you can edit the layout and save it as a preset and then load it using the layout dropdown menu later on.

Your layout should look like the one below:

![Screenshot 2023-11-16 at 3.14.46 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.14.46_PM.png)

The other bit of layout change you might want to make is to make the project window have a one-column layout. I like this because it gives me a good quick overview of all the folders in my project and it allows for easy navigation. But this is my personal preference, and you may keep it as is. To change this, click on the three dots at the top right of the project view to pull up a drop-down menu and click on the **one column layout**.

![Screenshot 2023-11-16 at 3.15.16 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.15.16_PM.png)

The result of the operation should look like this:

![Screenshot 2023-11-16 at 3.15.37 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.15.37_PM.png)

---

## Set-Up Your Project for AR Development

Now that we have customized unity to suit our needs, let’s create a basic application that allows you to bring in a 3D object into our project and to view it in VR and AR.

**Configure Build Settings**

First, we need to change the target build to android because that’s what we’re developing for (the Meta Quest 2 runs android OS).

On the menu bar, click on **file - &gt; build settings**.

![Screenshot 2023-11-16 at 3.26.00 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.26.00_PM.png)

In the resulting window that pops up, click on **Android** in the platform section, and click on **switch platform**. It is wise to switch platform to android as soon as possible because unity takes longer to switch platforms if there are assets in the project already. Switching early makes the switch relatively quicker.

![Screenshot 2023-11-16 at 3.26.17 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.26.17_PM.png)

**Configure Player Settings**

In the menu bar, click on Edit → Project settings

![Screenshot 2023-11-16 at 3.27.52 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.27.52_PM.png)

Select Player on the left hand side, then make the following changes under the **other settings** section (Note, you might need to expand the other settings tab if it’s collapsed):

![Screenshot 2023-11-16 at 3.28.16 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.28.16_PM.png)

Under rendering, change color space to Linear

![Screenshot 2023-11-16 at 3.49.02 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.49.02_PM.png)

Scroll down to Identification and set the minimum API level to Adroid 10.0(API level 29)

![Screenshot 2023-11-16 at 3.49.06 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.49.06_PM.png)

Scroll down to configuration and change the scripting backend to IL2CPP

![Screenshot 2023-11-16 at 3.49.11 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.49.11_PM.png)

Still under configuration → target architectures, make sure that only ARM64 is selected

![Screenshot 2023-11-16 at 3.49.16 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.49.16_PM.png)

**Install and Configure XR plugin Management**

XR is an umbrella term that covers AR (Augmented Reality), VR (Virtual Reality) and MR (Mixed Reality). While still in the project settings window, select XR Plugin Management and select install XR Plugin Management. This package provides platform integration across XR platforms and streamlines the development process of XR applications.

![Screenshot 2023-11-16 at 3.53.04 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.53.04_PM.png)

After the installation finishes, make sure that XR plugin management is still selected. Then, under the **Android** tab of the **XR plug-in management** window, under **the plug-in providers**, make sure that oculus is selected as shown below.  This installs the oculus XR plugin which is required for VR development.

![Screenshot 2023-11-16 at 3.53.21 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.53.21_PM.png)

**Installing Oculus Integration SDK**

The Oculus Integration SDK (software development kit), is an all-in-one source for core VR features, components, scripts, and plugins to ease and enhance the app development process in Unity. It packages several SDKs such as voice SDK, Interaction SDK, VR SDK and many others.

![Screenshot 2023-11-16 at 3.55.16 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.55.16_PM.png)

In the menu bar, click on win**dow - &gt; Asset store.** This should launch the asset store in your web browser. If you are having issues, you can paste this URL in your browser to access the asset store: [https://assetstore.unity.com/](https://assetstore.unity.com/)

Make sure that you are logged in (your initials should appear in the top right corner of the window). Search for **oculus integration** in the search bar

![Screenshot 2023-11-16 at 3.56.03 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.56.03_PM.png)

Scroll down until you find the Oculus integration and select it. 

![Screenshot 2023-11-16 at 3.56.49 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.56.49_PM.png)

When you select it, it should show the Oculus integration asset and its description and ratings. Click on add to my assets

![Screenshot 2023-11-16 at 3.57.31 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.57.31_PM.png)

Once it’s added to your assets, a popup with ‘open in unity’ or ‘go to my assets’ should appear. Select open in unity. If the popup did not show up, it can still be accessed from the Unity menu bar by navigating to window → package manager.

![Screenshot 2023-11-16 at 3.58.56 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_3.58.56_PM.png)

![Screenshot 2023-11-16 at 4.00.36 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.00.36_PM.png)

When the package manager window opens, click on the packages drop-down arrow, close the top left corner, and in the dropdown menu that appears, select My Assets

![Screenshot 2023-11-16 at 4.01.23 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.01.23_PM.png)

This contains a list of all assets that you have added to your account. Don’t worry if the list on yours is not as long as the example picture above.

Find Oculus integration on the list on the left panel, and select it. Then click on **import (or download then import)**

![Screenshot 2023-11-16 at 4.02.27 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.02.27_PM.png)

In the import window that appears, select the VR option the and unselect the others (there is no harm in selecting these others, but we are only interested in VR for now). Click import.

![Screenshot 2023-11-16 at 4.03.37 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.03.37_PM.png)

During import, if asked to update files, select Yes, for these and other files that might be found later.

![Screenshot 2023-11-16 at 4.05.32 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.05.32_PM.png)

You might be asked to send usage statistics. This is optional and the choice is up to you.

If you get a message asking you to restart due to an update to the OVVRPlugin, select restart and wait for the unity editor to restart

![Screenshot 2023-11-16 at 4.09.56 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.09.56_PM.png)

Once the editor restarts, you should see the oculus folder in your project view. Your console should be free of any errors as well. 

![Screenshot 2023-11-16 at 4.10.36 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.10.36_PM.png)

---

## Setting up your Scene Environment

Scenes are the environments that you want your users to see or interact with. We will set up a simple scene with a single 3D object to confirm that our AR pipeline is working.

We already have a scene in our project, and it’s named **sampleScene**. Let’s rename it into something appropriate, like **IndustrialScene**. We will use the scene to display a piece of industrial machinery to a user!

In your project window, expand the Scenes folder and right click on **SampleScene**, and select rename. Rename it to **IndustrialScene**.

![Screenshot 2023-11-16 at 4.11.35 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.11.35_PM.png)

**Add a VR Camera to the Scene**

Your scene currently has two objects: Main camera and Directional light. The scene is rendered through your main camera that is, the user sees the scene environment from the perspective of the camera. However, in VR and AR applications, the user is usually moving, and we need a way to keep track of the user’s location so that we can match the camera position in scene with the user’s eye’s location. Conveniently, in a VR or AR application, the user has some sort of hardware, e.g. a head mounted display that tracks the user’s motion. Therefore, if we get this tracking data, we can move the camera in the scene to match the location of the user’s head/eyes in the real world. The oculus integration SDK comes with an OVR camera rig that is already set up to community with your Quest 2 and report its location in the real world.

Let’s replace the main camera with the OVR camera rig in the scene.

First, delete the **main camera.** In the hierarchy, right click on Main Camera and select **delete**.

![Screenshot 2023-11-16 at 4.24.26 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.24.26_PM.png)

Then, in your project window, scroll down to Oculus → VR → Prefabs. Select the prefab named OVRCameraRig and drag it into the hierarchy

![Screenshot 2023-11-16 at 4.27.44 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.27.44_PM.png)

The primary benefit of using the OVRCameraRig is that it comes with the OVRManager component (OVEManager.cs, which is a script). This provides the main interface to the VR hardware. Let’s find the OVRManager in the inspector.

Click on the OVRCameraRig in the hierarchy to show its properties in the inspector. Find the OVR Manager component in the inspector.

![Screenshot 2023-11-16 at 4.28.22 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.28.22_PM.png)

Target devices: This are the devices that you want to target for your application. We are only targeting the meta quest 2, so leave it selected and uncheck the rest.

![Screenshot 2023-11-16 at 4.29.39 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.29.39_PM.png)

Scroll down to Tracking and change the tracking origin type to stage for AR or Floor level for VR (for now, go with stage).

![Screenshot 2023-11-16 at 4.30.28 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.30.28_PM.png)

Scroll down to Quest features.

![Screenshot 2023-11-16 at 4.32.47 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-16_at_4.32.47_PM.png)

Handtracking support allows your hands to be tracked and shown in the scene. Change it to **Controllers and Hands**. Change Handtracking Version \*\*\*\*to **V2** or the latest available.

**Setting up Passthrough**

Passthrough technology allows users to see the real-world environment through the VR headset’s cameras, allowing the headset to function as an AR device.

While still under Quest features, change passthrough support to **Supported.** This allows the headset to act as an AR device since we can overlay the real world with objects from our scene.

Still under quest features, scroll down to **Insight passthrough** and enable passthrough. This initiates passthrough when the app starts (If you leave it unchecked, our application will just be a VR application)

![Screenshot 2023-11-17 at 4.23.29 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.23.29_PM.png)

We need to add another component to the camera rig to enable passthrough.

Select ovrcamerarig in the hierarchy, then in the inspector, scroll all the way down until you find the **add component** button and click on it.

![Screenshot 2023-11-17 at 4.23.54 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.23.54_PM.png)

Type ovrpassthrough in the search box that comes up and click on the OVR passthrough layer script that shows up in the search results.

![Screenshot 2023-11-17 at 4.26.19 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.26.19_PM.png)

This adds the ovrPassthroughlayer component to the camera rig and it should show up as shown below. Let’s make some changes to it as well (Note: I have collapsed the rest of the components e.g. ovr manager, ovr camera rig etc. in the inspector window by clicking on the side arrow next to the component).

![Screenshot 2023-11-17 at 4.28.11 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.28.11_PM.png)

Underlay places the real-world / physical view under our AR objects. 

Go to the menu bar, navigate to Window → Rendering → Lighting

![Screenshot 2023-11-17 at 4.29.45 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.29.45_PM.png)

In the lighting window that comes up, click on the environment tab, then click on the radio button a t the end of the skybox material selection. Search for “None” and click on None from the results.

![Screenshot 2023-11-17 at 4.33.46 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.33.46_PM.png)

In the hierarchy, expand the OVRCameraRig -&gt; Tracking Space and click on **CenterEyeAnchor.** Then under the inspector, expand Camera and click on the **Clear Flags** drop-down and select **Solid Color**.

![Screenshot 2023-11-17 at 4.34.57 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.34.57_PM.png)

Then, click on background and set the R,G,B and A values to zero for a solid black background.

![Screenshot 2023-11-17 at 4.35.30 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.35.30_PM.png)

**Build and Run Your Application**

In the menu bar, go to File → build setting. Click on Add Open scenes to add the Industrial scene to the build (Note, you can also add a scene to the build by finding it in the project window and dragging it onto the scenes in the build window of the build settings).

Click on Build to start the build. 

![Screenshot 2023-11-17 at 4.39.20 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.39.20_PM.png)

When the dialog box comes up, create a new folder, and call it builds. Then give the build an appropriate name, say Industrial.apk and click on **save**. Give unity some time to complete the build.

![Screenshot 2023-11-17 at 4.39.39 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.39.39_PM.png)

Once the build completes with no errors on the console, you should see it under the builds folder that you just created. Upload it to your quest 2 using sidequest or adb on the command line. You should see your physical environment through the headset lenses! Congratulations, you have completed your AR pipeline build for Quest 2!

---

## Scene Editing: Adding 3D Objects to the Scene

Let’s add some objects to the scene. We can create basic 3D shapes in the Unity Editor or import models from external sources. Let’s look at both options.

**Adding Objects Using the Unity Editor**

Under the hierarchy, click on the plus ‘+’ sign with a dropdown and go to **3D Object -&gt; Cube** to add a cube to the scene.

![Screenshot 2023-11-17 at 4.45.40 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.45.40_PM.png)

A cube will be added to the scene. Click on the cube in the hierarchy and change its Z position under the transform property to 2. Change the X position to -1.5.

![Screenshot 2023-11-17 at 4.47.18 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.47.18_PM.png)

That’s all that’s needed!

**Importing External Objects Into the Scene**

If you have your own 3D model, you can import it by going to the project window and right-clicking on assets → import new asset and navigating to the location of your 3D model. Your model has to be in a format that is compatible with Unity, e.g fbx, or obj.

In this case, we will import an asset from the unity asset store.

Launch the unity asset store using the menu bar: **window → asset store**

Search for Industrial Equipment - Electric Motor and click on the result matching the exact term. Then click on it and click on “add to my Assets”

![Screenshot 2023-11-17 at 4.48.42 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.48.42_PM.png)

Back in unity, from the menu bar, go to **Window → package manager.** Make sure that you’re in packages: my assets. And enter industrial equipment – electric motor in the search bar on the top right corner. Then click on download.

![Screenshot 2023-11-17 at 4.49.34 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.49.34_PM.png)

Then click on import.

![Screenshot 2023-11-17 at 4.49.50 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.49.50_PM.png)

In the next window, click on all, then click on import.

![Screenshot 2023-11-17 at 4.50.19 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.50.19_PM.png)

When the import finishes, close the package manager window if it’s still open. Then, got to the project window and expand Toasty Planet Games → Industrial Equipment – Industrial Motor → Art → Prefabs → ElectricMotorUnityMaterials and find the prefab named **ElectricMotorAndCraddle**.

Drag it into the hierarchy window. Click on it and go to the inspector to change some of its transform properties.

Change the Z position to 2.5, the X position to 1 and the y rotation to 90 degrees. Feel free to play around with these values to change the positioning of the motor in your scene.

![Screenshot 2023-11-17 at 4.52.32 PM.png](https://assets.gaa.im/images/kit_4_1_figures/Screenshot_2023-11-17_at_4.52.32_PM.png)

Go to menu → file → save to save the changes to your scene. Then build and run your application on your meta quest 2 to see the motor and cube overlain over your physical environment.

---

## Downloading Project Files as a Starter Template

To download the project files and start developing on top of them, please go to [https://github.com/velaboratory/AR\_Starter\_Quest](https://github.com/velaboratory/AR_Starter_Quest) and clone the repository to your local computer, then open the project with unity. This contains all the work in this kit, up to the addition of the motor and cube to the scene.