Skip to main content
Version: 12 Dec 2024

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

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.

  1. Navigate to File->Build Profiles
  2. The Build Profile window will pop up, select Add Build Profile.
    Add new Build Profile
  3. A new window will appear, please select Android and then Add Build Profile.
    Select Android Build Platform
  4. Select the Build Profile you just created, Right Click->Rename it to Magic Leap 2 or similar.
    Rename Build Profile
  5. 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!

  1. Select your build profile.
  2. At the bottom, select Customize Player Settings
    Custom 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.