Local workspace
When using Mega Studio for Unity development, to ensure data security and editing efficiency, the tool employs a local workspace mechanism. When you load cloud Block data, it is actually downloaded to this local space. Operations like placing virtual objects and modifying annotations first occur locally until you manually perform a synchronization operation.
Unity scene saving and loading
Saving: In Unity's menu bar, click
File→Save As...to save, or use the shortcutCtrl + Shift + Sdirectly.

Loading: In Unity's menu bar, click
File→Open Sceneto load a scene, or double-click to open a saved scene. You can also use the shortcutCtrl + O.

Saving tool node prefabs
Select the EasyAR.Mega.* tool node and drag it into the Assets folder in the Project window. Then close the scene without saving.

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

If Block data was already loaded in the scene when creating the Prefab, you will be prompted to load it when adding it to a new scene.
Core mechanism
The core mechanism of the local workspace prevents data loss through "manual synchronization." During regular use, until you explicitly press upload, download, or service selection buttons in the tool, any local modifications won’t affect service data, nor will service data changes immediately update in the tool.
Data synchronization rules:
- Local \(\rightarrow\) Cloud: Any modifications made in Unity won’t automatically save to the cloud server. You must explicitly click the "Upload" button on the toolbar for changes to take effect.
- Cloud \(\rightarrow\) Local: If cloud data changes (e.g., others update the map), these changes won’t automatically appear in your editor. You must explicitly click "Download" or "Refresh" to fetch the latest data.
Note
If login times out, the tool will automatically re-login. At this point, data like the Block list may refresh, but Block data, annotation data, and other explicitly downloaded data won’t refresh automatically.