An AR sample project that demonstrates how to position objects around a map and localize on site with fiducial marker tracking.
Warning
The first time you open this Unity project on your computer, you may get two popups:
- An error saying that a package (e.g., XREAL) experienced a problem. Click Continue. Our
UPMWrapperfeature will resolve the issue once the project is open. - A notification about Meta OVR Settings having changed and Unity Editor needing to restart. Click Restart and the project will work when Unity opens again.
Warning
On Meta Quest 3, you may be prompted that "There are 7 outstanding Recommended fixes." Do NOT click "Fix All" in the Project Validation and Meta XR project settings tabs! This will override crucial settings and break camera passthrough access when marker tracking. Follow the instructions in our docs instead.
Magic Leap 2 ✅ | Meta Quest 3 ✅ | XREAL Air 2 Ultra (in development)
- Unity 6000.0.58f2 LTS or later
- Android Build Support
- Universal Render Pipeline (URP)
Clone the repository and open the project using Unity Hub.
Follow the documentation and device guides to configure settings, permissions, and installation of the app to your target device.
Use the "LocationBasedAR" scene for cross-platform development. If you only want to build for a specific device, then use the "_ML2" or "_MQ3" variants.
The "SanturcePark" scene includes the example map for this app. You can put your own scans here too.
Make sure to use the correct build profile for your device and check the scene(s) you want to include in your app.