Getting Started
These guides serve as a starting point for Magic Leap app development in Unity using OpenXR. If this is your first time developing for Magic Leap, we recommend that you follow the guides sequentially. If you are an experienced Magic Leap developer, these guides can be used as standalone references.
📄️ Install the Tools
This section provides information on how to install and configure the Unity Editor required to develop for Magic Leap 2.
📄️ Create a Build Profile
A new feature with Unity 6 is Build Profiles! This section provides instructions on creating a new Build Profile specific to the Magic Leap 2.
📄️ Create a Project
This section provides instructions on creating a new Unity with a version that is compatible with Magic Leap 2 development.
📄️ Configure Project Settings
This section provides detailed steps on how to manually configure your Unity Project so that you can build and deploy OpenXR applications for Magic Leap 2.
📄️ Render Pipeline Settings
This section assumes you created a new project using the URP template. The URP template project includes a collection of various URP assets, each pre-configured with different settings to represent different levels of quality. However, for Android apps running on our platform, the default configuration does not allow for a smooth 60 FPS experience in even the simplest scene. Follow these steps to configure the URP settings in your project to improve performance.
📄️ XR Origin & ML Rig
This section provides information on how to create a Player Rig that is compatible with Magic Leap 2 and is driven by the user's head and controller movement controller. This can be done by either:
📄️ Migrating to OpenXR
In order for an existing Magic Leap 2 Unity application to continue working under OpenXR, here are the minimum steps required:
📄️ Mixed Reality Template
The Unity Mixed Reality Template allows developers to start their projects configured for multi-platform mixed reality development. This guide will walk you through updating the Mixed Reality Template project to work with the Magic Leap 2's Unity OpenXR SDK.
📄️ Building a Simple App with OpenXR
This document describes how to build a Magic Leap 2 application using Unity.