Packaging (Mac to Mac)

Oculus 2 Setup for Mac in UE



Sign up as Meta Quest Developer with 2 factors or credit card:


After developer mode is verified, restart the headset, open Oculus apps and to headset setting, turn on developer mode:

image.png
image.png

Download oculus developer hub and open and login

Plugin the headset with usb cable, authroize the mac access the headset, the headset will be shown in the hub apps
image.png


Download andriod studio 3.5.3 /4.0.2?

image.png
click do not input setting
image.png
Custom install
image.png
image.png
Click Finish to install

Problem at here when install fail:
Can carry on but may cause problem later
image.png


Install ADB on mac:

Go to this site and copy the link below in terminal

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Enter laptop login password → click Enter to install
IF seeing installation successful, it shows next steps.
image.png
Then copy this:

brew install android-platform-tools
IF seeing Andriod platform tools installed successful
image.png

Connect and awake the headset, then type
adb devices
IF device connected be detected, if shows as:
image.png

Go to UE installed location folder, run the SetupAndriod command:
image.png

Update the Xcode in app store
image.png

Open UE blank project in Epic, create a VR template
(If xcode cannot be found warning pump up while open UE. Open terminal, paste below, then input password. Open UE again)

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

UE setting:


Enable Oculus VR plugin
image.png

In project setting:
image.png
In Advanced → List of map include, choose the map in folder same as the map set in default
image.png
image.png
image.png
Make sure andriod is ticked on support platfrom
image.png
Target hardware as Mobile and scalable
image.png

In Rendering Setting:
image.png
image.png
image.png
In default setting
image.png
In platforms, andriod setting
click configure now
image.png
accept sdk license
image.png
check min sdk version is correct?
Tick package game data inside apk
image.png
image.png
Choose Quest 2 in package device
image.png
In andriod sdk, can leave them blank if the install is by the method above in this tutorial
image.png

Restart UE to wait for shaders to complie
(Can’t go further as the UE project crash forever after restart)

If successfully, should see quest option on launch in UE project (click it, will send the project to the headset. May take several mins. Check on Output log if any error comes up
image.png

When it’s done, the project name apps is found in the quest, connect usb cable and start the apps
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.