How to deploy Unity Build to Quest 2 part 1.

Suleiman Abdullah
4 min readOct 24, 2023

--

Objective: deploy Unity Build to Quest 2.

In the First step, we need to install the Android module to Unity Editor.

If you install Unity without a hub, open the Build setting, select Android, and click Download a Module. After downloading Android switch the platform to Android.

Note: Downloads android this way it may not install recommended Android NDK & NDK and Open JDK for android.

Go to Edit <Project setting <and choose XR Plug-In Management and enable Oculus.

Go to build setting < Android < Player setting, Change Color space to Linear, Uncheck auto Graphic Api, and remove the OpenGLES2/Vulkan.

Go to Identification and uncheck this option.

Go to Minimum API and change to Version 10.

For scripting backend change to IL2CPP, and change Target Architecture to ARM64. And for Install Location change to Automatic.

Open the Meta app on your mobile phone, and make sure location and Bluetooth are enabled, also turn on the Meta Quest device. Then go to the main menu < Device, and choose Meta Quest this will connect Meta Quest.

Before enabling developer mode we need to follow this step, first create organization. You will need to log in to your account we created on mobile and follow the previous article on how we did it.

Then go to step two where you will be asked to add a payment method or add your number to be able to use two-factor verification methods.

Note: Make sure you save the code sent to your mobile via text, and take note of it to avoid headaches when you lose your sim card.

Now go to device <Headset Setting < Developer mode, and enable developer mode.

Now go to the link below

https://developer.oculus.com/documentation/native/android/mobile-device-setup/

Then go to this part to download this software and extract this zip file to your PC. Now open this folder <android_winsub.Inf select this folder and right-click android_winsub.inf, select install, then choose open, and select yes to install.

Connect your Quest and allow USB debugging.

The popup will show twice, allow them

Go to build setting < Android < Run Device, hit the refresh tab, and choose Oculus.

Now hit build and run, rename the app and hit save, and when the build is finished wear your headset.

Note: Don't put your build in any folder ,remember we set location to automatic ,so this build will go to Oculus, just rename the build only.

Note: I wrote some note early that this will not work ,I was wrong this will work now.

--

--

Suleiman Abdullah
Suleiman Abdullah

Written by Suleiman Abdullah

Self taught Unity Developer, who is passion about making games ,and he loves Math For Game Development

No responses yet