Magic Leap 2
These screenshots show the Unity 6 and device settings required to successfully deploy and launch apps on the Magic Leap 2.
Settings & Permissions in Unity
1. Build Profiles > Android > ML2 Profile > Scene List & Scripting Defines
Ensure that you have a Build Profile targeting Magic Leap with the correct scene list and scripting defines.

2. Build Profiles > Android > ML2 Profile > Other Settings
Make sure the Vulkan Graphics API, DXTC texture compression format, package name, version, IL2CPP scripting backend, new input system, x86-64 target architecture, internal write permission, and application entry point are set correctly.



3. Build Profiles > Android > ML2 Profile > Publishing Settings
Make sure the custom main manifest, custom main Gradle template, and custom launcher Gradle template are all correctly assigned.

4. Project Settings > XR Plug-in Management
Enable the OpenXR Plugin and Magic Leap 2 feature group.

5. Project Settings > XR Plug-in Management > OpenXR > Enabled Interaction Profiles & Feature Groups
Check that any required interaction profiles, feature groups, and subsystems used in your project are enabled.

6. Project Settings > XR Plug-in Management > Project Validation
Review that all checks pass successfully.

7. Project Settings > MagicLeap > Permissions
Include all Android permissions that you anticipate your app needing. Additional permissions may be required on the device, in the app permission settings.

Installing an App to Magic Leap 2
To install an .apk to your device, enable Developer Mode and USB Debug Mode.
Connect your Magic Leap 2 to your computer via USB-C cable.
If your computer has a USB-A port, you may need to use a USB-A-to-C cable.
Enable "Allow USB debugging" if prompted.
Check "Always allow from this computer" to not receive this popup in the future.
Use Magic Leap Hub 3 to install the app. Go to Device Bridge > Apps > Install App, and select your .apk file.
Settings & Permissions on Device
For each app you download, you may have to manually grant permissions (e.g., camera, voice input) on device in Settings > Apps & Notifications > App info > your-app > Permissions
.
Last updated