

In Unity, go to Package Manager and install the XR Interaction Toolkit.In your connected Oculus headset, a dialogue will pop up asking you if you wish to enable Oculus Link.You can choose connection via cable (cable link) or via wifi (AirLink). Run the Oculus App, and when you do it will show a setup guide.We need this in order for the Oculus Link feature to work, which will allow us to test in real time instead of building and running the app on the Oculus. (this step is NOT a must but I recommend it) Once installed, connect your device with a usb-c to usb cable and make sure it shows properly in the Oculus Developer HUB. This will allow you to check if your device is connected to the PC properly, and also has other functionalities (you can screen capture and record video directly from the devices). And so, we are going to install a few more things in order to speed up development. But of course if we leave it at that it's going to be really slow and tedious developing VR apps because we will have to code basic VR principles by ourselves and waste time on building and pushing the app to the device every time we want to change and test something. This is the bare minimum you need in order for you to develop VR games for Oculus. When you put your headset on you will see the application load. This will build the application and push it to your Oculus (if connected via usb). Connect the headset to the pc/laptop with a usb-c to usb cable (like the Oculus Link cable, but it will work with third-party cables as well) and accept all the dialogues that show up, namely the "Allow USB Debugging", "Always allow from this computer", and the "Allow access to data".įinaly, In Unity in Build Settings -> Run Device choose the connected Oculus device from the options and click Build & Run (make sure you have at least one scene added to Build Settings).Alternatively, you can do the same with the Oculus Android app. In your Quest 2 headset, go to Settings -> System -> Developer and turn on the USB Connection Dialog option.
:no_upscale()/cdn.vox-cdn.com/uploads/chorus_asset/file/22220830/androidinstall.jpg)
Put on your Quest 2 headset and log in to your developer account.In Project Settings -> XR Plugin Management, go the Android tab and check the Oculus option.In the Package Manager, install the XR Plugin Management and the Oculus XR Plugin.In Build Settings, switch to Android platform.(preferably open it for the Android platform) Check the Android Build Support module, as well as the Android SDK & NDK and OpenJDK checkboxes. Install Unity (anything above 2018 would work, preferably the latest).After completing these steps, you can, if you want, do the other ones to have the fastest possible workflow. First off, these are the essentials one needs in order to develop for Oculus Quest 2 with Unity.
