🎨
Creative Technology, Brown Arts Institute
  • Creative Technology
  • Page
  • Wayfinding
    • Ableton Push
    • Animation station
    • Electronics workstation
    • Flatbed scanner
    • MIDI keyboards
    • Projectors
    • Recording Studio microphones
    • Recording Studio patch bay
    • Recording Studio preamps
    • Tablet displays
    • Title
  • Cheatsheets
    • 🖨️Printing to the Epson Stylus P9000
  • Check-Out Equipment
    • Mobile Recording Kit
    • Camera Kit
      • Basic Operations
      • Video Setup for Recording Humans
        • Audio Set Up
        • Custom Mode 1 Settings: A Reference
    • Lens Choices for Lumix Camera
    • Shoulder Mount for Camera
    • Manfrotto Befree Tripod
    • Neewer 3 Point Light Kit
    • Mini LED 3 Point Light Kits
    • Audio Kit
      • Set up and Recording Operation
      • Transferring Files + Audio Interface Setup
    • Shotgun Mic Kit
      • Booming with a Shotgun Mic
    • Basic Recorder Kit
    • Field Recorder
    • 4 Channel Surround Sound Field Recorder
    • GoPro Kit
    • Multi-Cam GoPro Kit
    • Podcasting Kit
  • Guides
    • Virtual reality
      • Unity 3D: Overview
        • Setting up Unity
        • Building 3D objects
        • Using Unity
      • Virtual Reality with Unity: Getting Started
        • Setting up your project
        • Enable Controller Movement + Teleportation
        • Basic Interactable Objects
        • Prototyping VR via Oculus Link
    • 🎙️Podcasting
      • 🎤Beginner Podcasting: Granoff Studio
        • 🖥️STEP 1: Setting up Ableton for Recording
        • 🎙️STEP 2: Microphone Set Up
        • 🎧STEP 3: Headphones Set Up
        • 🎚️STEP 4: Setting Level and Recording
        • 🎛️3 Person Podcasting / Using the Tracking Room
        • 📕Glossary
      • 📱iPhone/Smartphone Podcasting Cheat Sheet
        • 🗣️Basic tips for interviewing
        • 🤳Using Your Phone to Record
    • 3D design and modeling
      • Finding 3D models and materials
  • ✖️Logic Pro X Basics
    • 🔊Creating and using sampler instruments from audio
    • 📊EQ Basics
    • 📂Filter Basics
    • 📈Compressor Basics
    • 🥁Drum programming with Ultrabeat
    • 💪Using Flex Time
  • Camera Kit Set Up for Video Recording Humans
    • The Camera + Basic Operations
      • Initial Setup for Recording Monologues
      • Custom Mode 1 Settings: A Reference
      • Audio Set Up
      • Manfrotto Befree Tripod
      • Neewer Light Kit
Powered by GitBook
On this page
  • Create new project
  • Install packages
  • Edit project settings
  • Edit build settings
  • Setting up the scene
  • Creating the XR Origin
  • Adding controller models
  1. Guides
  2. Virtual reality
  3. Virtual Reality with Unity: Getting Started

Setting up your project

A step-by-step walkthrough of setting up a basic Unity Project for VR headsets

Last updated 1 year ago

These instructions were written for Unity version 2022.3.4f1. They may not work for future versions.

Create new project

In Unity Hub create a new project with the 3D (URP) template. Give it a name and choose its locations.

Install packages

  1. Go to the menu item Window > Package Manager

  2. Under Features install:

    • VR (2 packages)

  3. After installing you will be prompted with a warning: "Do you want to enable the backends?" Click "Yes"

  4. Under Packages install:

    • XR Interaction Toolkit

    • XR Plugin Management (This should already be installed with VR Features)

  5. A second dialog titled "XR InteractionLayerMask Update Required" will pop up. Click "I Made a Backup, Go Ahead!"

  6. Before closing the Package Manager window, go to the XR Interaction Toolkit package and click on the Samples tab. Import Starter Assets.

Edit project settings

  1. Go to the menu item Edit > Project Settings

  2. Under XR Plug-in Management, click the Android tab. Check the box for OpenXR

  3. Under XR Plug-in Management > OpenXR

    • Click the "+" under Interaction Profiles to add a new profile for your device:

      • Quest 2 > Oculus Touch Controller Profile

      • Quest Pro > Meta Quest Touch Pro Controller Profile

    • Under OpenXR Feature Groups, check the box for Meta Quest Support

  4. Go to Player:. Change Company and Product Name. Avoid spaces and symbols.

Edit build settings

These instructions are for Mac development.

  1. Go to File > Build Settings. Under Platform choose Android.

  2. Click the button "Switch Platform"

  3. Connect your device to your computer via USB

  4. Under Run Device click "Refresh" then choose your device from the List. You may need to click allow from within the device.

  5. Click Add Open Scenes to include the SampleScene in the build.

Setting up the scene

Creating the XR Origin

  1. Repeat the above for the RightHandController choosing the XRI Default Right Controller preset.

Adding controller models

You can add models for physical controller to help show where they are in space by adding a mesh object or prefab object.

  1. Add your model or prefab as a child of your LeftHandController object. Make sure the nested models Transform position is set to (x: 0, y: 0, z: 0). If you add the object directly from the your Project Assets it should be positioned correctly.

  2. After nesting your model in the LeftHandController object, select the LeftHandController and in the inspector find the section labeled Model in the XR Controller component. Click and drag the controller model from the heirarchy into the drop down box labeled Model Prefab.

  3. Repeat steps for the RightHandController.

Switch Packages from In Project to Unity Registry

Add an XR Origin by going to the Hierarchy add XR > XR Origin. NOTE: Do NOT select the XR > Device-based > XR Origin

The select the left hand controller objects inside the Camera Offset inside the XR Origin.

On the XR Controller (Action-based) component of the LeftHandController click the preset menu and choose: XRI Default Left Controller.

Unity provides generic controller objects for the left and right hand XR Interaction Toolkit > [VERSION] > Starter Assets > Prefabs > XR Origin Pieces > XR Controller Left (and Right). Meta provides of their physical controllers.

3D models