This project is depricated, please use the MagicLeapUnityExamples project instead.
This project is meant to provide the Magic Leap Unity SDK and examples and has been configured to help the user quickly jump in start developing for the Lumin platform, whether it is via the Zero Iteration tool or deploying the app directly to the device. We recommend duplicating this project and using it as the foundation for new Magic Leap Apps.
Caution: Do not add or change files in the Assets/MagicLeap
folder to to prevent issues when importing new SDK versions in the future.
- Unity Editor 2020.2
- LuminOS 0.98.20+
- Magic Leap XR Plugin 6.1.0-preview.2
- MLSDK v0.25.0
- Using Unity Hub, download Unity 2020.2.x and make sure Lumin support is selected during installation.
- Add and Open the project using Unity Hub.
- Go to File > Build Settings and set the build target to Lumin.
- Under Unity Preferences, set the MLSDK path. For example:
/Users/YourUserName/MagicLeap/mlsdk/0.25.0/
- Go to Project Settings > Publishing Settings and set the ML Certificate . Make sure the privkey file is in the same directory.
- Make sure USB debugging is enabled between your device and computer (which requires MLDB access) and you’re allowing untrusted sources
- Open the HelloCube scene located under
Assets/Scenes/
or learn how to Create Your First App. - Build and Run the demo scene
- In Unity, delete the
Assets/Plugins/Lumin/Editor
directory if it exists. - Exit Unity.
- Launch The Lab and open Zero Iteration.
- Create or select a Target who's SDK matches the SDK that will be used in Unity.
- Toggle the state to Connected or select the Connect button.
- After ZI is running, launch Unity.
- Go to Magic Leap > ML Remote > Import Support Libraries.
- Use Zero Iteration from Unity as normal.
This git project is configured to ignore the Assets/Plugins/Lumin/Editor
folder. This is done intentionally, to avoid conflicting ZI files when developing between different operating systems and operating system versions.
How to generate a ML Certificate
Enabling developer mode on your device
Downloading the mlsdk
Getting started with Zero Iteration
Using Zero Iteration inside Unity