Skip to main content
Version: 12 Dec 2024

Install the Tools

This section provides information on how to install and configure the Unity Editor required to develop for Magic Leap 2.

Prerequisites

Install Magic Leap SDK & Tools

We'll use the ML Hub 3 to install and manage the Magic Leap Unity Package, the Unity SDK Examples Project, and other tools.

Open the Magic Leap Hub Package Manager

To access the Package Manager in the ML Hub:

  1. Open the ML Hub 3.
  2. Select Packages option from the left sidebar.

Downloading the Unity Examples package

To download the Unity Magic Leap Examples Project:

  1. Select the Unity Examples package.
  2. Click Install button in details section.
ML Hub 3 Package Manager with the Unity Examples package highlighted

Install Unity Editor

This section describes the process of installing the Magic Leap 2 compatible Unity Editor.It is recommended that developers use Unity Editor version Unity 2022.3 LTS or later to develop Magic Leap 2 Applications.

  1. Open the Unity Hub application
  2. Go to the Installs tab.
  3. Click the Install Editor button.
  4. In the Install Unity Editor window, select Unity 2022.3 LTS or a later version.
  5. In the Modules screen, select the following:
    • Android Build Support
    • Android SDK & NDK Tools
    • OpenJDK.
  6. Select the Continue button.
  7. If prompted, accept the terms and conditions and click Install.
Unity Hub - Install Window

Next Steps

Create a new Unity Project

Learn which version of Unity and the project template to use when creating a new Magic Leap 2 application.

Unity Examples Project

After successfully creating a new application, check out the pre-configured Magic Leap Unity Examples Project to see some of Magic Leap's unique platform features.

Configure Project Settings

After creating a new Unity project, learn how to configure your project so you can build and deploy Magic Leap 2 applications.