Oculus Quest Starter is a boilerplate project ready for Oculus Quest deployment. Using this project can simplify the initial setup process.
Oculus Quest is a fantastic device. However, for those who are new to Oculus Quest or Android development, setting up the development environment could be really frustrating, and many beginners are likely to quit even before they managed to get their first app built and run on the Quest. If you are one of them, this project (and its documentation) will probably save your day, seriously.
- Oculus Quest 1 and 2 ready. Just set the Android SDK path and you are good to go.
- Step-by-step tutorial on how to install Android SDK, NDK, JDK.
- Motion Controller configured with proper offset and rotation for Oculus devices.
Supported Engine Version: Unreal Engine 4.25-4.26
Before you launch UE4 and dive into this project, you should get your Android SDK, NDK and JDK installed. If you have no idea about those SDK, NDK, JDK stuff, never mind, just remember you need to have them to make apps for Oculus Quest.
https://developer.android.com/studio/archive
NDK path will be: C:/Users/[Username]/AppData/Local/Android/SDK/ndk/21.1.6352462
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
With the SDK, NDK, JDK stuff installed, you can now open the project in UE4, and set the SDK, NDK, JDK path in project settings.
After setting the SDK, NDK, JDK path, go to “Project Settings -> Android”, click “Accept SDK License”.
Now the project should be ready to launch on Oculus Quest.
With all settings done, connect your Quest to PC, disable oculus link, make sure developer mode and debugging is enabled.
Use the launch drop-down menu to launch the preview on Quest.
If the Quest does not show up in the drop-down menu, open Project Launcher to find it.
BP_MotionControllerPawn_Oculus – Pawn class inherited from BP_MotionControllerPawn, call setup function of BP_MotionController_Oculus at BeginPlay.
BP_MotionController_Oculus – Motion Controller inherited from BP_MotionController, setup offset and rotation of hand mesh for Oculus devices.
BP_PickupCube, BP_PickupSphere – Pickup blueprint examples.
To learn about more detail about implementation, please reference orange comment blocks and variable tooltips in each blueprint.
Oculus Quest Unreal Quick Start Guide:
https://developer.oculus.com/documentation/unreal/unreal-quick-start-guide-quest/
Setting Up Android SDK and NDK for Unreal:
https://www.unrealengine.com/marketplace/en-US/product/vr-gravity-grab-oculus