Create a Build Profile
A new feature with Unity 6 is Build Profiles! This section provides instructions on creating a new Build Profile specific to the Magic Leap 2.
Prerequisites
- Installed Unity Hub
- Unity 6 LTS or higher
Creating a New Build Profile
Build profiles are a new feature with Unity 6, previously called build settings. A build profile is a set of configuration settings you can use to build your application on a particular platform. You can make your own configurations for various platforms in the same project without having to reconfigure a bunch of settings when you switch build platforms.
- Navigate to File->Build Profiles
- The Build Profile window will pop up, select Add Build Profile.
- A new window will appear, please select Android and then Add Build Profile.
- Select the Build Profile you just created, Right Click->Rename it to Magic Leap 2 or similar.
- Finally, select Switch Profile to set this as you active build profile.
Custom Player Settings
If you would like to override the global Player Settings for any platform, you can do that with build profiles!
- Select your build profile.
- At the bottom, select Customize Player Settings
From there, you can set any player settings you want! When you switch platforms, you will not lose the settings specific to this build platform.
If you would like to setup your player settings for the Magic Leap 2, please follow this guide to manually configure your settings.
Next Steps
Configure Project Settings for Magic Leap OpenXR
After creating a new Unity project, learn how to configure your project so you can build and deploy Magic Leap 2 applications.