Create annotation for on-site run verification
Annotation data is structured data files created through the Mega Studio tool, primarily used to record spatial positioning information such as location coordinates and pose parameters of target objects within a scene. In the localization verification process of Mega Toolbox, these annotation data can be utilized as a benchmark reference to verify the accuracy of actual localization effects.
Before you begin
Preparations needed before creating annotation data:
Install Mega Studio
If you have already downloaded and installed the EasyAR Sense Unity Plugin, you can skip this step.
Download EasyAR Sense Unity Plugin
On the EasyAR download page, select "EasyAR Sense Unity Plugin (for Mega)" to download, as shown below:


After downloading, extract the file to obtain two tgz files.

Create Unity project
Run Unity and create a "New Project".

- Select "3D (Built-In Render Pipeline)".
- Click "Create Project".

Install Mega Studio
Click "Window" in the menu bar, select "Package Manager". In the pop-up window, click the "+" symbol in the top-left corner and choose "Add package from tarball...".

Install the sense and mega packages sequentially. After successful installation, it will appear as shown.

Mega Studio usage
Right-click in the blank area of the left "Hierarchy" panel and import "Annotation Tool(Edit Mode)".

- Select "EasyAR.Mega.Annotation" in the left "Hierarchy" panel.
- Enter your EasyAR account name and password in the right "Inspector" panel.
- Click "Login".

- In the right "Inspector" panel, click the icon after "Mega Cloud Service".
- In the opened window, select a "Mega Block localization service".
- Click "OK".
- In the right "Inspector" panel, click "Load" to add the map to the Unity project.

- Press Ctrl and left mouse button simultaneously at the spatial position needing annotation to create an annotation cube.

- Select "EasyAR.Mega.Annotation" in the left "Inspector" panel.
- Click the icon after the annotation data package in the right "Inspector" panel.

- In the opened window, select a "Mega Block localization service" on the left.
- Click the "+" symbol in the top-right corner to create an annotation data package.
- Enter the name of the annotation data package.
- Click the "√" symbol to confirm.
- Click "OK" to save the annotation data package.

- Click below the annotation data package in the right "Inspector" panel and click the "∧" button.
- Finally, click "Yes" in the pop-up window to complete saving the annotation data package. You can view and delete annotation data in the cloud service's Block cloud localization.
