Import the latest version of EasyAR plugin to enable Mega features
This document introduces how to import the latest version of EasyAR Sense Unity Plugin (for Mega) to enable Mega features.
Use Mega should import the latest version of EasyAR plugin
Unity 2021.3.30 or later is required.
On the download page, you'll find two versions of Unity plugins: EasyAR Sense Unity Plugin and EasyAR Sense Unity Plugin (for Mega).
The main differences are:
- EasyAR Sense Unity Plugin: Doesn't contain Mega support files and cannot be used for Mega development. EasyAR provides historical version downloads starting from 4.6.
- EasyAR Sense Unity Plugin (for Mega): Contains Mega support files and can be used for Mega development. EasyAR doesn't provide historical version downloads.
When using versions after 4000, the com.easyar.sense files inside both packages are identical if the version numbers match, making them interchangeable. Therefore, if you've already downloaded and imported the latest EasyAR Sense Unity Plugin, you can directly extract the com.easyar.mega file from the EasyAR Sense Unity Plugin (for Mega) package and import it into your Unity project without reinstalling the entire plugin.
Note
After version 4000, if incompatible com.easyar.sense and com.easyar.mega are imported, script compiler errors will occur indicating version mismatch. Ensure com.easyar.sense and com.easyar.mega come from the same plugin package version or are mutually compatible.
For version 4.7, the version numbers of com.easyar.sense and com.easyar.mega must match completely including all subsequent digits and letters to guarantee compatibility.
Before app release, check the EasyAR website. If newer EasyAR Sense Unity Plugin (for Mega) versions exist, download and import the latest to ensure compatibility with the newest Mega services and optimal performance.
Important
Apps developed using outdated EasyAR Sense Unity Plugin (for Mega) may fail to access the latest Mega services. When online services remain unchanged (i.e., Mega positioning library versions aren't updated), apps built with older versions still function normally.
Import EasyAR plugin and Mega support package
After unzipping the downloaded zip package, you'll find a readme file and two tgz files. Import these tgz files directly into Unity without further extraction.
Import method:
- From the menu bar, navigate to
Windowand selectPackage Manager - Click the
+icon in the top-left corner of the pop-up window, then selectInstall Package from tarball... - In the dialog box, select the downloaded and extracted
.tgzfiles
The two .tgz files can be imported in any order—either com.easyar.sense or com.easyar.mega first.

Tip
com.easyar.mega depends on third-party packages like com.unity.cloud.ktx and com.unity.cloud.gltfast. Ensure stable internet connection during import so Unity can automatically download these dependencies.
In certain network environments, importing dependencies might be slow. Consider modifying network settings or retrying until all dependencies import successfully.
After successful import, no error messages should appear in Unity's Console window. In the Package Manager window, both EasyAR Sense Unity Plugin and EasyAR Mega Studio should appear with the imported version numbers.

Note
After importing plugin packages, the tgz files shouldn't be deleted or moved. Place them appropriately beforehand, typically in the Unity project's Packages folder for easier version management.
Next steps
- Quickstart Unity Mega development
- Develop apps using Mega