Install Unity Mars
Perform the following steps to install Mars in a project:
- Download and import the Mars installer asset package
- Add the provider plug-ins for the XR platforms and devices that you plan to support.
- Validate the project settings using the Mars Validation utility.
- Add Mars templates and assets to the project.
See Upgrade an existing Mars project for instructions about updating an existing Mars project.
Download and import the Mars installer asset package
To install Mars in a project:
- Download the installer asset package: Unity Mars Installer.
- Open the project in Unity or create a new project.
- Import the package with the menu command: Assets > Import Package > Custom Package.
- In the File Chooser, navigate to and select the Mars asset package where you downloaded it.
Click Open.
Leave all assets in the package selected.
- Click Import.
Unity imports the asset package and sets up Mars in the project. This process involves downloading and adding additional Package Manager packages. It can take a few minutes and requires a stable internet connection.
Add XR provider plug-ins
To build XR applications, you must enable the provider plugins for the AR and MR platforms that you want to support in the project. For example, you must enable ARCore for Android and ARKit for iOS:
- Open the Unity Project Settings window (menu: Edit > Project Settings).
- Select the XR Plug-in Management settings section.
- Select the tab representing a platform that you plan to support (Windows, Android, iOS).
- Enable the Plug-in Provider options for that platform.
- Repeat for additional platforms.
Check that the settings for each plug-in are appropriate for your project.
The ARCore provider plugin enabled for the Android platform
Tip
If you don't see a tab for a platform you want to support, then you must use the Unity Hub to install that platform module for the current Unity Editor. See Add modules in the Unity Hub documentation for instructions.
Validate Mars project settings
Mars includes a built-in validation utility that checks for potential problems and conflicts in your project settings. You can access this utility in the Mars section of the Project Settings window.
- Open the Project Settings window (menu: Edit > Project Settings).
- Select the Project Validation page in the Mars settings section.
- If the utility lists errors or warnings, use the Fix and Edit buttons to correct them.
The Mars Project Validation utility flagging a number of configuration issues
See Project Validation for more information about the utility.
Add templates and sample assets
Mars includes a variety of templates, samples, and optional assets. You can add these assets from the Mars Content Manager window.
To install the additional templates and samples (after installing Mars):
Open the Mars Content Manager (menu: Window > Content Manager).
Select the item you want to install.
- Click Install.
Note
The Mars templates and sample assets are added to your project Asset folder. Unity recommends that you keep these files in your project and track them in version control when using Unity MARS.
Upgrade an existing Mars project
You can update Mars from the Package Manager window:
- Open the Unity Package Manager window (menu: Window > Package Manager).
- Select Unity Mars in the list of packages in the project.
- If a newer version of Mars is available,then you can click the Update to n.m.p button at the bottom of the Package Manager window to update to that version. You can also expand the list of versions with the expand (triangle) icon in front of the Unity Mars name. Click See other versions for the full list of available versions.
- Check the Mars Project Validation utility to see if there are configuration errors or warnings.
Note
When you update a package with the Package Manager, Unity also updates any packages on which it depends, if required to maintain compatibility. However, the updated version of a dependent package is not guaranteed to be the latest one available. You should double check that the additional packages installed or updated are the versions you want to use.