Block viewer tool (Unity development)
Block viewer tool (Unity development) is an independent, lightweight functional module within Mega Studio, specifically designed for developers to directly view and preview built Mega Blocks. It allows you to load, browse, and inspect cloud-generated Block data directly in the Unity Editor. Additionally, it supports direct validation of positioning effects without writing any code or running a full application.
Tip
This tool is designed for Unity developers. Compared to the EasyAR.Mega.BlockViewer tool, it additionally integrates a validation tool component. If you are a non-developer, it is recommended to use EasyAR.Mega.BlockViewer or EasyAR.Mega.Annotation directly.
Creating the viewer tool
Right-click in a blank area of the
Hierarchypanel, selectEasyAR Mega->Tool->Block Viewer for Unity Developer (Edit Mode)
After adding, a new node named
EasyAR.Mega.BlockViewer (Dev)will appear in theHierarchypanel
Function description
After creating the tool, you can configure it through the Inspector panel to load Block data, and control model export or display.
EasyAR.Mega.BlockViewer (Dev) node description
All functions of EasyAR.Mega.BlockViewer (Dev), except the validation tool, can only be used in the editor in a non-running state. Ensure the play button at the top of the Unity Editor is not pressed, as shown below. The button should be a right-facing triangle, indicating a stopped state, for the tool to function.
During runtime, the tool-related nodes and data will remain in the scene and can be used with the validation tool, but all functions of the tool itself are unavailable.

Warning
If you need to package the developed Unity application to mobile devices, be sure to delete the EasyAR.Mega.BlockViewer (Dev) node from the scene before building. Otherwise, it may cause build failures or runtime errors.
