I made it work yesterday. (UE 5.3.2, maybe works with any UE5)
Requirements:
- UE 5.3.2
- Build/Install/Run your apk in Development mode
adbcommands workingadb devicemust show your Quest2
I followed this guide with some modifications, adjusting the paths and names according with your project and Unreal 5 installation.
The guide is for UE4.25 so some paths are different in UE5.
UE4CommandLine.txt -> UECommandLine.txt- e.g:
C:\Unreal\UE_5.3\Engine\Build\Android\UnrealGame
- e.g:
Note:
You don’t need this file, you can just create it somewhere paste the correct commands into it, and send it properly to your Quest2
Paste the code below into it adjusting to your scenario, I’ll explain each section.
../../../MyVRProject/MyVRProject.uproject /Game/Maps/Map01 -trace=log,counters,cpu,frame,bookmark,file,loadtime,gpu,rhicommands,rendercommands,object -statnamedevents -tracehost=192.168.1.XX -tracefile=/sdcard/UnrealEngine/MyVRProject/MostRecentTraceCapture.utrace
MyVRProject:- Your project name, if you didn’t change anything it’s your “project folder name”
/Game/Maps/Map01- a level/map, this is in my
Content/Mapsfolder (Content/Maps/Map01)
- a level/map, this is in my
- -trace=log,counters,cpu,frame,bookmark,file,loadtime,gpu,rhicommands,rendercommands,object -statnamedevents
- trace stats to return etc, don’t mess it
- -tracehost=192.168.1.XX
- The IP of your machine, the one running the UnrealInsights, this IP must be reached by your quest2 in your network (and do the
adb portcommands from the guide`)
- The IP of your machine, the one running the UnrealInsights, this IP must be reached by your quest2 in your network (and do the
- -tracefile=/sdcard/UnrealEngine/MyVRProject/MostRecentTraceCapture.utrace
- This path doesn’t exist and it was not created at all but it works, maybe it’s unnecessary
Now, you must find your project/app files in the Quest2, the guide points to /sdcard/UE4Game/<ProjectDir>, this is different for UE5.3.2.
- You need the correct path to
adb pushthe UECommandLine.txt
IT’S BETTER if you find it by yourself. It’ll probably be in e.g:
-
/sdcard/Android/data/com.home.MyVRProject/files/UnrealGame/MyVRProjectcom.home.MyVRProject- Android Package Name:
Project Settings -> com.home.[PROJECT]
- Android Package Name:
- you must know how to navigate into it using
adb shellandcd/lscommands
After finding the correct path, push the UECommandLine.txt file
- Into the folder with the
UECommandLine.txt adb push UECommandLine.txt /sdcard/Android/data/com.home.MyVRProject/files/UnrealGame/MyVRProject
Now
- Run
UnrealInsights - Check
Auto astarts analysis LIVE - Run your app in Quest2
- UnrealSights must connect and open the trace stuff
PS: remember to follow the guide for some clarification
PS2: BE AWARE! Idk butI believe when I installed and ran a new build UECommandLine.txt was vanished so I needed to push it again.
