How to import a Private Scan mesh and use its origin anchor?

Include the following details (edit as applicable):

  • Issue category: VPS
  • Device type & OS version: Android / iOS
  • Host machine & OS version: Windows
  • Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
  • Xcode version: 14.0.1
  • ARDK version: v2.3.1
  • Unity version: 2021.3.11f1

Description of the issue:

I am trying to perform the steps here.

The main issue is that I’m not really familiar with the Serialize/Deserialize methods.
The docs said that each Private Scan mesh comes with a “.b64” file.
However, mine came with a 3D model, a .JPEG, and a .JSON (looks like the origin anchor).

Now, how can I restore the origin anchor of the .JSON file?
It currently looks like this:


After deserializing it, I should be able to restore the origin anchor inside this “payload”, and ultimately place GameObjects on top of my VPS Private Scan wayspot, correct?

If someone have any working examples of that, that would be great as well!

I am also struggling with this! Have tried encoding the whole JSON string to b64, and just the AnchorPayload value but nothing works.