Origin anchors are now provided for private meshes. Use origin anchors to place private meshes in your Unity scene and align your virtual content with your private scans.
The workflow for generating and using origin anchors is as follows:
a. Make a Private Scan and upload to the Lightship developer portal. For more details see Creating Private VPS Locations.
b. Niantic processes the scan and makes a mesh download available on the portal in a couple hours.
a. Download your Private Mesh from the Lightship Portal. The download now includes an Origin Anchor for the mesh (a base64 string) contained in a separate .b64 file in the mesh zipfile. Open the .b64 file in a text editor to access the anchor string. Note that the anchor string is generated each time you download, however previously downloaded anchor strings for the same mesh are still valid and can still be used as long as the private scan is still valid.
a. Deserialize the anchor string into a Wayspot Anchor payload:
`payload = WayspotAnchorPayload.Deserialize(origin_anchor_b64String)`
c. Once restored, the origin anchor aligns the mesh origin to the world, so the mesh can be placed on top of the anchor.
a. In your application provide the Origin Anchor to Wayspot Anchor APIs.
b. The Origin Anchor is resolved on device, aligning the mesh in AR.