Table of Contents

Block viewer tool

Block viewer tool is an independent, lightweight feature module in Mega Studio, specifically designed for viewing and previewing built Mega Blocks. It allows you to directly load, browse, and inspect cloud-generated Block data in the Unity editor without writing any code or running the full application. Through this tool, project managers, operations personnel, testers, and developers can quickly verify the quality of mapped Block data.

Create viewer tool

  • Right-click in a blank area of the Hierarchy panel, select EasyAR Mega -> Tool -> Block Viewer (Edit Mode)

    Create block viewer

  • After adding, a new EasyAR.Mega.BlockViewer node will appear in the Hierarchy panel

    Node

Function description

After creating the tool, you can configure it through the Inspector panel to load Block data, and control model export or display.

BlockViewer node description

EasyAR.Mega.BlockViewer is an edit mode tool that works only in non-play mode, serving as an editing tool within the editor. Ensure the play button at the top of the Unity editor is not pressed. As shown below, when the button appears as a right-facing triangle, it is in the stopped state and can be used.

Node

Warning

If you need to package the developed Unity application to mobile devices, be sure to delete the EasyAR.Mega.BlockViewer node from the scene before building, otherwise it may cause build failure or runtime errors.

Tool module description

  1. Login component

  2. Mega cloud service component

  3. Block data component

  4. Annotation dataset component

    Load