Skip to main content
Version: 20 Mar 2024

Application Simulator for Unity


Beginning with Magic Leap Unity SDK package version 2.0.0, the Magic Leap Application Simulator for Unity package will be officially deprecated. This decision comes as a response to community feedback and our ongoing effort to improve the developer experience.

Application Simulator will continue to be accessible to Unity developers through the Magic Leap Hub module.

Disambiguation and Performance Explanation

The App Sim (short for "Application Simulator) for Unity is an offering that is separate, but related to the App Sim. Previously, it was recommended to use the App Sim (through the Magic Leap Hub), but due to performance and compatibility reasons, it is now recommended following the steps outlined on this page and not using the pattern involving strating the App Sim in the ML Hub, switching to Unity, and clicking Play.

Application Simulator can now be used from within Unity as a native plugin without having to open ML Hub. This is enabled using the Magic Leap Application Simulator for Unity package. Note: this package still requires that both the ML Hub and Application Simulator Runtime are installed.

System Requirements

System Requirements for the App Sim


Downloading Application Simulator for Unity

Installing the Application Simulator for Unity Package through The ML Hub's Package Manager
  1. Start the ML Hub, open the Package Manager, and go to the All tab.
  2. Select the latest version of the Magic Leap Application Simulator for Unity, and click on the Download button.
  3. Click on Apply Changes.

After installing the package, search for it in the Package Manager, and click on Open Folder. This will help you with the next step of the process.

Locating the Application Simulator for Unity package through the ML Hub's Package Manager

Installing Application Simulator for Unity

  1. In Unity, go to Window > Package Manager, then click on the + icon and select Install Package from Tarball.
Install Package from Tarball through Unity's Package Manager
  1. Navigate to where the package is located, and open the com.magicleap.appsim.tgz file.
Locate the Application Simulator for Unity Package
  1. After a quick installation, the package should now be visible under the name Magic Leap App Simulator in the Package Manager.
The Application Simulator for Unity package is now visible

Make sure you select Install package from Tarball, as otherwise, you will fail to find the package.

Running Application Simulator for Unity

A new Magic Leap menu will now appear under Unity's Windows tab. If you do not see it, restart the Unity editor.

  1. Go to Windows > Magic Leap App Simulator > Load Default Layout.
  1. The Target Selector panel will now appear in the upper-left portion of your Unity editor. You can now select your Target.
Application Simulator Target Tab - Target Selection
  1. Click on the Play button next to your Target.
Play Buttons Explanation

With the App Sim for Unity, there are now two identical-in-appearance "Play" buttons. One is for selecting your Target and the other for playing your Scene.

App Sim for Unity Play Buttons
  1. Click on the Play button in the top-center of the Unity editor window.

Once a new session has been started, you should now be able to use the Application Simulator from within the Unity editor.

Arranging the Workspace

From the same dropdown menu, you can open panels with other Application Simulator tabs, such as Device View, Hand Tracking, and more.

Those panels offer the same functionalities as other Unity Editor panels — they can be positioned, scaled, arranged, and docked to your workspace to suit your preferences.

A Unity Editor Workspace with Several Magic Leap Application Simulator Panels Docked to it