VPS SDK : Unity Guide
Learn how to build and integrate MultiSet Anchor SDK for Unity
Last updated
Was this helpful?
Learn how to build and integrate MultiSet Anchor SDK for Unity
Last updated
Was this helpful?
Download our Unity SDK and import the .unitypackage in a new or existing Unity project.
We require Unity6 (6000.0.23f) or above version of the Unity project
Create a new unity project with the template as 3D (Built-in Render Pipeline)
Unity -> Assets -> Import Package and select the MultiSet Abchor SDK Unity package, click on import and accept the next steps.
The packages below are required com.unity.xr.arfoundation@6.0.3 com.unity.xr.arkit@6.0.3 com.unity.xr.arcore@6.0.3 com.unity.cloud.draco and com.unity.cloud.gltfast
After importing the package in Unity, the package will import all AR frameworks that is ARFoundation, ARkit and ARcore.
In Project setting -> XR Plug-In Management -> check the platform where you want to build for
Create and download the credentials from the developer portal and add them in Unity project as shown below
You will get the Client ID and Client Secret that you can copy or download as .csv.
Please download and save your credentials when you generate them from Developer portal
You can copy the Map Code from Maps section in the developer portal, import the scan in the Unity project, and add the scan under "Map Space". You can use the sample script Map Mesh Downloader provided in SDK to download Meshes directly in the SDK.
Select MultiSet SDK Manager and the Map Code of the map you want to perform localization.
Add all your AR content that you want to anchor with respect to map under "Map Space" game object
The .glb mesh is only required as a reference for Unity content placement, it is not used during localization, so please remove this mesh in your final build
Make sure to add all your assets as children of "Map Space" object, so post-successful localization your assets will appear at the right location with respect to the Map
Once you are done adding all your assets in right place, then you can select File -> Build Profiles-> Choose iOS/Android -> Build
Once you run the app on a mobile device, the app will try to perform localization at the start of the scene and will set all the AR content relative to the Map of the area.