Table of Contents

Block viewer tool

The Block viewer tool is an independent, lightweight functional module in Mega Studio, specifically designed for viewing and previewing completed 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, operators, testers, and developers can quickly verify the quality of the constructed Block data.

Create the viewer tool

  • Right-click in the 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 the export or display of the model.

BlockViewer node description

EasyAR.Mega.BlockViewer is an edit-mode tool, which only works in the editor during non-play mode. Ensure the play button at the top of the Unity editor is not pressed, as shown below. When the button is in the right-facing triangle state, it is in the stopped state and can be used.

Node

Warning

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

Tool module description

  1. Login component

  2. Mega cloud service component

  3. Block data component

  4. Annotation dataset component

    Load