How to Setup Oculus Quest 2 for Development in Unity Under 20 Minutes

November 14 2022

Meta Quest 2 (previously known as Oculus Quest 2) is by far the most popular standalone virtual reality headset. At least that’s safe to say judging by the units sold compared to other VR headsets.

And it’s absolutely a great hardware to get you started in XR development since it offers a lot of features for a relatively affordable price. The downside is that it does require setting up a Facebook account which some users didn’t like due to privacy concerns.

In this guide, we’re going to learn how to set up the device for AR/VR development in Unity. You’ve bought the headset to develop apps instead of playing endless rounds of Beat Saber right? And yes you can play Half-Life: Alyx through SteamVR with pure untethered wireless glory too!

We’ve made this step-by-step guide to get you started as fast as possible, but you can always revert to Meta’s official setup process documentation: Oculus App Development in Unity

Table of content

Quest 2 Official Technical Requirements

  • At least a 2.0+ GHz processor and 2 GB system RAM
  • You need Windows 10 (64-bit) or macOS Sierra 10.10 or higher (x86)
  • macOS is supported with limited features
  • The minimum supported Unity version is 2020.3 LTS
  • Android Build Support module
  • Android Software Development Kit (SDK) and Native Development Kit (NDK).
  • OpenJDK.

To use Oculus Link (Windows only) that allows you to use Unity’s Play mode on Oculus Quest, you need to use Use Oculus Link with Meta Quest 2 or Meta Quest, and that has the following graphics card requirements (based on Rift S):

Component Recommended Specs Minimum Specs
Processor Intel i5-4590 / AMD Ryzen 5 1500X or greater Intel i3-6100 / AMD Ryzen 3 1200, FX4350 or greater
Graphics Card NVIDIA GTX 1060 / AMD Radeon RX 480 or greater NVIDIA GTX 1050 Ti / AMD Radeon RX 470 or greater
Alternative Graphics Card NVIDIA GTX 970 / AMD Radeon R9 290 or greater NVIDIA GTX 960 4GB / AMD Radeon R9 290 or greater
Memory 8GB+ RAM 8GB+ RAM
Operating System Windows 10 Windows 10
USB Ports 1x USB 3.0 ports 1x USB 3.0 port
Video Output Compatible DisplayPort video output Compatible miniDisplayPort video output (miniDisplayPort to DisplayPort adapter included with Rift S)
More information in the Oculus Link Compatibility website.

Quest 2 Setup for Development

Looking for a fast video tutorial? Our instructor Mithcell made this quick tutorial on how to start building for Quest 2 with Unity.

1. Setup the Quest Headset

  1. On your phone or tablet, download and install the Oculus mobile app for Android or iOS.
  2. Sign in with your developer account.
    *If you do not have one, sign up to be an Oculus developer.
  3. If it is the first time you sign in, follow the instructions to set up your VR profile.
  4. Pair your headset, and then follow the instructions to do the setup.

For detailed instructions: Getting started with your Meta Quest

2. Put the Quest in Developer Mode

  1. Once logged in, on the headset go to:
    Settings > System > Developer
  2. Turn on the USB Connection Dialog option.
  3. On your mobile app go to:
    Devices > Developer Mode
  4. Use the toggle to activate Developer Mode.
  5. Connect the headset to the computer using a USB-C cable.

3. Connect Quest and Unity

    1. Open the project in Unity.
    2. Go to:
      Edit > Project Settings
    3. Select XR Plug-in Management.
    4. In the Android Settings tab, check Oculus.
    5. Open:
      File > Build Settings
    6. Select Android and click on Switch Platform.
    7. In the Run Device list, pick your device. If your device is not there, make sure Developer Mode is enabled and then click on Refresh.
    8. Click on Build and Run.

Unity will compile your project and then it will push it to your headset.

Oculus Link – Windows Only

If you are developing your app on a computer with Windows, you can use Oculus Link. This method allows you to save time because you can preview your build using the Play button, without the need to build and run. This will save you a lot of time.

For Link, make sure your computer meets the recommended specifications, your computer and headset are updated, and your USB cable is of good quality.

1. Connect the Headset and the Windows PC

  1. Install the Oculus App for PC.
  2. Plug your headset into your computer using a good USB 3.0 cable. The good in that sentence means a cable long enough and with support for data and power transfer.
  3. Deny the Allow access to data prompt. If you select accept by accident, unplug the headset and plug it in again.
  4. Select Enable when you get the prompt to Enable Oculus Link.

If you are having issues, try restarting the headset and the computer, or check the Troubleshooting Tips and Known Issues website.

2. Setup Unity to Work with the Headset

  1. Open the project in Unity.
  2. Go to
    Edit > Project Settings
  3. Select XR Plug-in Management.
  4. In the Windows Settings tab, check Oculus

Working with Meta Quest on macOS

Meta Quest does work with macOS however you won’t get the real time VR preview. The main reason is that Oculus Link Cable / Air Link functionality does not work on macOS, which means that you will have to compile the APK each time you want to test your project. Slightly annoying, but that’s why most developers use PC and Microsoft OS.

--

Interested in Circuit Stream's courses?


REVIEWED BY

Dejan Gajsek

Content Marketing

Receive our newsletter to stay on top of the latest virtual reality and augmented reality info.