Update Date: 2023-12-18
If this is your first time using Unity to develop an application for Meta Quest, I highly recommend starting with this tutorial from Meta, which shows how to create a basic Meta Quest application in Unity.
From my current experience, the official documentation and API reference both provide very detailed explanations, and I highly recommend starting from these two resources. The StarterSamples and Meta XR Interaction SDK Samples projects offer very good and up-to-date use cases, which can help you quickly understand the composition and structure of applications.
Of course, Meta also provides a wealth of examples, you can check them all from here.
If you are accustomed to debugging your program by printing logs, then you can install Android Logcat in Unity Package Manager to view the log information during the program's execution.
You can also refer to my case and create a new Debug interface in your application interface for your debugging. I highly recommend this method, as it allows you to debug your application more conveniently.
If you wish to use breakpoints to debug your application, then you need to:
- Step 1: Open Unity, go to Preferences -> External Tools -> Change your External Script Editor to Visual Studio or Rider.
-
Step 2: Connect your Meta Quest and computer via a wired connection.
-
Step 3: In the Build Settings, check Development Build and Script Debugging, then click Build and Run.
- Step 4: Switch to Visual Studio or Rider, select Attach to Unity Process, and then choose your Meta Quest from the list.
Then, you will be able to view the memory information at the breakpoints in the IDE.
MQDH provides powerful performance analysis tools as well as log viewing tools; if you need to perform performance optimization for your application, then MQDH should be the best choice.