Unity Wireless Quest 2 Script

This script will allow you to connect the Quest 2 and sideload across the network. Note, there’s a space after C:\Program, not a carriage return.

@echo off
echo Connect Device via USB and accept connection inside of device
set /p UnityVersion=What version of Unity? 
cd C:\Program Files\Unity\Hub\Editor\%UnityVersion%\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\ && adb devices && adb shell ip addr show wlan0
set /p IpAddress=What is the devices IP address? 
adb tcpip 5555
adb connect %IpAddress%:5555
echo You can now disconnect the USB
cmd /k

Leave a Reply