Local Workspace
When using Mega Studio for Unity development, to ensure data security and editing efficiency, the tool adopts a local workspace mechanism. When you load Block data from the cloud, the data is actually downloaded to this local space. Editing operations such as placing virtual objects and modifying annotations first occur locally until you manually perform a synchronization operation.
Saving and Loading Unity Scenes
- Saving: In the Unity menu bar, click
File->Save As...to save, or directly use the shortcut keyCtrl + Shift + Sto save the scene.

- Loading: In the Unity menu bar, click
File->Open Sceneto load the scene, or directly double - click to open the saved scene. You can also use the shortcut keyCtrl + Oto open the scene.

Saving the Prefab of Tool Nodes
Select the EasyAR.Mega.* tool nodes and drag them to the Assets folder in the Project window, and then close the scene without saving.

Next time you use it, create a new scene and then drag the saved Prefab from the Assets folder into the scene.

If Block data has already been loaded in the scene when creating the Prefab, a prompt to load will appear when adding it to the scene next time.
Core Mechanism
The core mechanism of the local workspace avoids data loss through "manual synchronization". During normal use, before explicitly pressing buttons such as upload, download, and select service on the tool, any local modifications will not be reflected in the service data, and any changes in the service data will not be immediately updated to the tool.
Data synchronization rules:
- Local \(\rightarrow\) Cloud: Any modifications you make in Unity will not be automatically saved to the cloud server. You must explicitly click the "Upload" button on the toolbar for the modifications to take effect.
- Cloud \(\rightarrow\) Local: If the data in the cloud changes (for example, someone else updates the map), these changes will not automatically appear in your editor. You must explicitly click the "Download" or "Refresh" button to get the latest data.
Note
If the login times out, the tool will automatically log in again. At this time, data such as the Block list may be refreshed, but data that requires explicit downloading, such as Block data and annotation data, will not be automatically refreshed.