-
Download Unity (Editor version: 2020.3.12).
-
Download Visual Studio 2022. Install “Universal Windows Platform Development” and check off the Optional C++ workload.
-
In Unity, check the following configuration in File -> Build Settings
-
Click
Build. -
In the Build folder, find
HelloAR U3D.slnand open it in Visual Studio. -
Configure as
Debug | ARM64 | Deviceand run.
- In Unity Editor, load the Reconstruction Scene (
Scenes/ReconstructionScene). - Click the GameObject named
AzureSpatialAnchors. - In the Inspector pane on the right side of the Unity Editor, find the
Reconstruction Scriptand three fieldsParticipant Id,Env Id, andTask Id. - Fill in the three fields o fthe scenario you want to load. Refer to the dataset for correct names.
- Click the Run button.
- Click the 'Reconstruct' button to load anchors from the scene. Wait until all anchors are loaded.
- Once all anchors are loaded, click the 'Show All' button to instantiate all the anchors. The current version (2023.08.28) shows all widgets after all the updates.
- Click the Scene tab and use the mouse to browse the scene.
Also see Microsoft's quickstart guide for sample instructions about Spatial Anchors.