Table of Contents

Import the EasyAR plugin to enable AR functionality

This tutorial explains how to enable the EasyAR plugin in Unity.

Use a compatible Unity version

Make sure you have installed a compatible Unity version (Unity 2021.3 or later). It is recommended to use the latest version of Unity 2022.3 or Unity 6.3.

Import the EasyAR Sense Unity Plugin

On the download page, you will see two versions of the Unity plugin: EasyAR Sense Unity Plugin and EasyAR Sense Unity Plugin (for Mega). The main differences between these two versions are:

  • EasyAR Sense Unity Plugin: Does not include Mega support files and cannot be used for Mega development. EasyAR provides historical version downloads starting from version 4.6.
  • EasyAR Sense Unity Plugin (for Mega): Contains Mega support files and can be used for Mega development. EasyAR does not provide historical version downloads.

When Mega functionality development is not required, it is recommended to use EasyAR Sense Unity Plugin.

  • Download the plugin package
    • Download the latest version of EasyAR Sense Unity Plugin.
    • After unzipping the downloaded zip package, you will see a readme file and .tgz files. The .tgz file can be imported directly into Unity and should not be unzipped.
    • Place the .tgz file in the Packages folder of your Unity project.
  • Import the plugin package
    • From the menu bar, click Window and select Package Manager.
    • In the pop-up window, click the + sign in the top-left corner and select Install Package from tarball ....
    • In the dialog box that appears, select the aforementioned .tgz file.

ImportUnityPlugin

Note

The .tgz file cannot be deleted or moved to another location after being imported into Unity. Place this file in a suitable location before importing. It is generally recommended to place it in the Unity project's Packages folder for convenient version management.

Fill in the license (License Key)

From the Unity menu, select EasyAR > Sense > Configuration to bring up the EasyAR Sense settings interface.

FillInKey

Enter the EasyAR Sense License in the input box under EasyAR Sense License.

FillInKey2

Tip

The EasyAR Sense License can be created from the EasyAR Developer Center (Chinese, English). For first-time use, you can follow these steps to create one:

  • Create EasyAR Sense 4.x Personal Edition
  • Select Yes for sparse spatial map and fill in any name
  • Fill in any application name, and enter com.mycompany.myproject for Bundle ID and Package Name
  • Select the newly created License, then click the copy button on the right

copykey

Note

The Bundle ID and Package Name can be changed later, but the number of changes is limited. If you have a specific application package name, you can also enter your own package name.

There is no limit to the number of personal editions you can create. Other types can be created as needed for formal use.

Next steps