Quickly run Mega using PC camera (a shortcut not recommended for remote debugging)
This document guides developers on how to verify whether the Mega cloud localization service works without an EIF recording file, using a PC camera alongside site images.
Before you start
Complete the Quick Start to learn how to run Unity applications with Mega functionality.
Connect a camera device to your PC and ensure it functions properly.
Expected functionality:
This approach is not our recommended method for remote debugging. Using EIF files for debugging is the best practice when recording is possible.
This method is only for debugging processes unrelated to tracking performance when no EIF file is available, such as verifying whether the Mega service is functioning properly.
The effect seen using a camera on a PC is completely unrelated to the actual tracking performance on a real device.
Steps
Complete the following steps to quickly verify the Mega service.
Obtain the site photo
Get a clear photo of the site. You can take a photo on-site or capture one in the editor using the panorama preview feature.
How to capture an image using the panorama preview feature
Click Mega Block Viewer(Dev) in the Hierarchy panel > In the Inspector panel, click Load next to Panorama Markers.
Many yellow spheres representing panorama markers will appear in the scene:
Click the panorama marker at the position you want to preview > Click Mega Block Viewer(Dev) in the Hierarchy panel > In the Inspector panel, click Hide next to Panorama Markers.
A site image will appear in the Mega Panorama window. Capture and save it:
Place some 3D content referencing the block dense model or panorama

Confirm the session verification tool is not enabled
Click AR Session (EasyAR) in the scene > Confirm that Frame Player in its Inspector panel is disabled.

Click EasyAR.Mega.BlockViewer(Dev) in the scene > Confirm that the verification tool in its Inspector panel is not Enabled (if the dense model is not needed, you can also directly delete or hide EasyAR.Mega.BlockViewer(Dev)).

Click play to run Mega using the site image
Demo:
Important
The Mega localization service is relatively "tolerant" of input for localization, but the results of this debugging method are only used to distinguish between "pass" and "fail" (i.e., a 0 or 1 difference). It proves that the Mega localization service is running, but does not represent the actual tracking experience on a real device at all. To observe localization speed and tracking stability, be sure to debug using EIF files or test on a real device.
You can run it by pointing the camera at the image or video. If localization is successful, you will see 3D objects displayed on the screen with jumping updates. Since the Block model is loaded in the scene, it will also be displayed.
If you close the tool
EasyAR.Mega.BlockViewer (Dev)(setactivetofalseor delete the node), you will see the effect of virtual objects superimposed on the real scene.The warning messages on the screen cannot be turned off because this usage does not reflect the real effect. We restrict this method to development use only, and developers should be aware of its impact.

Determine if the system is running normally by checking the timestamp update in the diagnostic information: If you see the timestamp in the diagnostic information displayed on the screen updating continuously, it means the system is running normally.

Important
During use, you will inevitably notice the diagnostic text displayed on the screen during runtime. Carefully read UI message output and consider what configurations to adopt and what control switches to retain during development, testing, and after application launch. Communication with EasyAR often requires providing this information. We recommend utilizing it rather than immediately disabling it.
Next steps
- Whenever possible, simulate runs using the session verification tool.



