Skip to main content
Version: 14 Oct 2024

Application Simulator Plug-in for Unity Editor

This section describes how to configure your Unity Project settings so that you can test your application inside the Magic Leap App simulator plug-in for the Unity Editor.

caution

The Magic Leap App Simulator is no longer being developed or supported. The package only works when using the XR workflow and a Magic Leap Unity SDK version prior to version 2.0.0.

note

If you want to use the Magic Leap Application Simulator through the Magic Leap Hub instead, please see Application Simulator.

Graphics Compatibility for Application Simulator for Unity Package

The following graphics APIs are compatible when running the Magic Leap Application Simulator for Unity, directly inside the Unity Editor.

OpenGLVulkanMetal
Windows 10/11
macOS (Intel)
macOS (M1)
IMPORTANT

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 Application Simulator for Unity is an offering that is separate, but related to the Application Simulator. Previously, it was recommended to use the Application Simulator through the Magic Leap Hub (ML Hub), but due to performance and compatibility reasons, it is now recommended that you follow the steps outlined on this page rather than starting the Application Simulator 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 Application Simulator

Prerequisites

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.
tip

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 Application Simulator in the Package Manager.
The Application Simulator for Unity package is now visible
caution

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 Application 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 Application Simulator for Unity, there are now two identical-in-appearance "Play" buttons. One is for selecting your Target and the other for playing your Scene.

Application Simulator 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