Table of Contents

Import the latest version of the EasyAR plugin to enable Mega features

This article explains how to import the latest version of the EasyAR Sense Unity Plugin (for Mega) to enable Mega features.

Use mega should import the latest version of easyar plugin

Requires Unity 2021.3.30 or later.

On the download page, you'll find 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 downloads of historical versions starting from 4.6.
  • EasyAR Sense Unity Plugin (for Mega): Contains Mega support files and can be used for Mega development. EasyAR does not provide downloads of historical versions.

When using versions after 4000, the EasyAR Sense Unity Plugin files (i.e., com.easyar.sense) inside both compressed packages are identical for the same version number and can be interchanged. Therefore, if you have already downloaded and imported the latest version of EasyAR Sense Unity Plugin, you can directly extract the com.easyar.mega file from the EasyAR Sense Unity Plugin (for Mega) compressed package and import it into your Unity project, without needing to re-import the entire plugin package.

Note

After version 4000, if incompatible com.easyar.sense and com.easyar.mega are imported, the script compiler will report errors indicating version mismatch. Ensure that com.easyar.sense and com.easyar.mega come from the same version of the plugin package or are mutually compatible.

For version 4.7, the version numbers of com.easyar.sense and com.easyar.mega—including all subsequent digits and letters—must match exactly to guarantee compatibility.

Before launching the application, it is recommended to revisit the EasyAR website. If a newer version of EasyAR Sense Unity Plugin (for Mega) is available, download and import it to ensure the application can utilize the latest Mega services, guaranteeing maximum compatibility and optimal performance.

Important

Applications developed with outdated EasyAR Sense Unity Plugin (for Mega) may fail to work with the latest Mega services.
When there are no changes to online services (i.e., when the version of the Mega localization library remains unchanged), applications packaged with older versions of EasyAR Sense Unity Plugin (for Mega) will still function normally.

Import easyar plugin and mega support package

After unzipping the downloaded zip package, you will see a readme and two tgz files. Do not decompress the tgz files again as they can be directly imported into Unity.

Import method:

  • From the menu bar, click Window and select Package Manager
  • In the pop-up window, click the + sign in the upper-left corner and select Install Package from tarball...
  • In the dialog box, select the downloaded .tgz file after decompression

The two .tgz files can be imported in any order. You may import com.easyar.sense first or com.easyar.mega first.

alt text

Tip

com.easyar.mega depends on some third-party packages such as com.unity.cloud.ktx and com.unity.cloud.gltfast. Ensure your network connection is stable during import so Unity can automatically download and import these dependencies.

In some network environments, Unity's dependency import process may be slow. We recommend adjusting your network settings or retrying the import multiple times until all dependencies are successfully imported.

After successful import, no error messages should appear in Unity's Console window. Additionally, when opening the Package Manager window, you should see both EasyAR Sense Unity Plugin and EasyAR Mega Studio imported with their corresponding version numbers displayed.

alt text

Note

After importing the plugin package, the tgz file cannot be deleted or moved. Therefore, it's advisable to place these files in an appropriate location before importing, typically within the Packages folder of your Unity project for easier version management.

Next steps