Skip to content

A cross-platform Unity 6 sample project that demonstrates how to place AR content relative to real world locations using fiducial markers.

License

Notifications You must be signed in to change notification settings

MeshMap/LocationBasedARSample

Repository files navigation

Location-based AR sample project for Unity 6

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:

  1. An error saying that a package (e.g., XREAL) experienced a problem. Click Continue. Our UPMWrapper feature will resolve the issue once the project is open.
  2. 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.

Device Support

Magic Leap 2 ✅ | Meta Quest 3 ✅ | XREAL Air 2 Ultra (in development)

Requirements

  • Unity 6000.0.58f2 LTS or later
  • Android Build Support
  • Universal Render Pipeline (URP)

Getting Started

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.

About

A cross-platform Unity 6 sample project that demonstrates how to place AR content relative to real world locations using fiducial markers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •