How to setup for Quest 2 development on Mac using Unity without Bootcamp

How to setup for Quest 2 development on Mac using Unity without Bootcamp

Recently I got my hands on Oculus Quest 2, now called Meta Quest 2 or simply Quest 2. As I started to setup the development environment, I saw some concerning posts across the internet. It was that you need Windows PC for oculus 2 development. Being a Macbook Pro owner my preference was always to work in macos rather than windows or bootcamp based windows. So here are the steps you need to follow to setup your environment and have your first Unity app running on Quest 2.

Minimum Requirements

Here are the recommended minimum system requirements to start your development:

  • macOS: 10.10+ (x86 only)
  • 2.0+ GHz processor
  • 4.0 GB system ram

Install Android Studio

As Quest 2 is an android based device, you will need the android tools to develop and deploy on the VR set. Here are the steps to setup your android environment.

  1. Download and Install Android Studio from developer.android.com
  2. Goto Preferences -> Appearances & Behaviour -> System Settings -> Android SDK
  3. Open SDK Platforms Tab.
  4. Select the latest SDK Platform and click on install.

Screenshot 2022-02-13 at 10.57.08 AM.png

Install and Run Unity

According to the oculus documentation, we can develop apps for the device using any of the following platforms:

  1. Native Platforms - Android
  2. Unreal Integrations
  3. Unity Integrations

For this tutorial we will be the Unity platforms. Here are the steps to install Unity.

  1. Download and Install UnityHub from unity website: unity.com
  2. Click on Install Editor button.Screenshot 2022-02-13 at 3.40.24 PM.png
  3. Download and Install the latest stable release. Screenshot 2022-02-13 at 3.32.22 PM.png
  4. Make sure you have selected all components in Android Build Support. Screenshot 2022-02-13 at 3.42.29 PM.png
  5. Now click on continue and complete the installation process.

Setup Organization

Join an Existing Organization

To join an existing organization, follow these steps:

  1. You’ll need to request access to the existing organization from the admin.
  2. You’ll receive an email invite. Once accepted, you’ll be a member of the organization.

Create a New Organization

To create a new organization, follow these steps:

  1. Go to developer.oculus.com/manage/organizations/c...
  2. Fill in the appropriate information.

Verify your Account

  1. Go to developer.oculus.com/manage/verify.
  2. If prompted, login with your Oculus Developer account.
  3. Verify your account with one of the two following options:
  4. Confirm your mobile number to set up SMS two-factor verification, please visit FB Help Center to ensure that your country and phone carrier are supported for SMS.
  5. Add a payment method to your account (Paypal excluded).

Unlock Developer Mode on Quest 2

Once you belong to a developer organization, follow these steps to put your device in developer mode:

  1. In your headset, sign into the developer account you want to use for development.
  2. Go to Devices in the Oculus mobile app.
  3. Select your headset from the device list and wait for it to connect.
  4. Select Developer Mode.
  5. Turn on Developer Mode.
  6. Connect your headset to the computer using a USB-C cable and wear the headset.
  7. Accept Allow USB Debugging and Always allow from this computer when prompted on the headset.

Create new Project

  1. Open Unity from Unity Hub.
  2. Click on New Project.
  3. Enter a name for your project.
  4. Change your Template to "3D"
  5. Choose the folder location.
  6. Click on Create Project.
  7. Unity Editor will open with a Sample Scene.

Setup Oculus Plugin

Right now the Unity project will run on Mac and an android phone. But we need to c configure additional settings for it to run on Quest 2.

  1. Open Build Settings->Player Settings.
  2. Goto XR Project Management.
  3. Install XR Plugin Management. Screenshot 2022-02-13 at 6.50.20 PM.png
  4. After the installation is complete, Goto Android Tab. Screenshot 2022-02-13 at 7.01.17 PM.png
  5. Select Oculus as the Plug-in Providers.

Import Oculus Integration from Asset Store

In this section we will import "Oculus Integration", a free Unity asset from the Oculus team.

  1. Goto Asset Store
  2. Search for asset "Oculus Integration".Screenshot 2022-02-13 at 7.27.42 PM.png
  3. Click on Add to My Assets
  4. Click on Open in Unity. This will open Package Manager in Unity.
  5. Download and Import the above package to your project.
  6. Select All and click on Import. Screenshot 2022-02-13 at 7.32.27 PM.png

Build and Run

  1. Make sure you have Connected your Oculus Quest 2 to your Mac.
  2. For this tutorial open the scene Assets->Oculus->VR->Scenes->Room
  3. Open Build Settings.
  4. Click on Add Open Scenes.
  5. Select Android in the Platform Section.
  6. Click on Switch Platform.
  7. Select the Development Build checkbox.
  8. In the Run Device section select your Oculus Device.Screenshot 2022-02-13 at 8.51.27 PM.png
  9. If everything goes right, you should see your app selected scene running in the oculus quest 2.Screenshot 2022-02-13 at 9.18.45 PM.png

With's Next

Now that you have got your setup ready you can go over the tutorials available on the internet. It is a good time to get your hands dirty with the VR samples available on the net. Enjoy the XR journey.

Did you find this article valuable?

Support Neeraj Jaiswal's Blog by becoming a sponsor. Any amount is appreciated!