VPS tracking only works on last added AR location

Include the following details (edit as applicable):

  • Issue category: Lightship Maps / Semantic Segmentation / Multiplayer / Real-time Mapping-Depth / ARDK Documentation / Unity Example Package / Sample App aka ‘AR Voyage’ / ARDK Virtual Studio Tools / Developer Tools / Networking / VPS / Scanning Framework
  • Device type & OS version: Android / iOS / Other Ex. iPhone 8+ on iOS 13
  • Host machine & OS version: Mac / Windows / Linux / Other Ex. Mac on Big Sur x.x
  • Issue Environment : Unity Remote / Unity Mock / On Device / Dev Portal
  • Xcode version:
  • ARDK version: 3.0
  • Unity version:

Description of the issue:
I’m adding AR Locations as in docs, added several locations, however only the last location is tracked. Is it how the location tracking works? Is there a maximum number of tracked locations? I want multiple locations to be localizable in my project.

Hello Pavle,

Yes, the current setup allows you to track only one location at a time. You would need to manually switch between locations at this time. I will pass your interest in having multiple locations tracked to the team to consider in the future.

Thanks for the answer, Stacy!
Is it possible to have, for example, 5 nearest locations that can be localized in the area and the one phone is pointing to be localized? I’m trying to make app that allows users to scan wayspots close to each other, so choosing only by it’s location which one user is trying to localize would be impossible.

Hello Pavle,

You could either specify a location or have Lightship try to localize to the 5 nearest wayspots:

To specify a location, you just need to call ARLocationManager.SetARLocations(<some_ARLocation>).

To try the 5 closest wayspots, just make sure you don’t make that call at all (so that _targetARLocations array in ARLocationManager is empty).

Whatever choice you pick will dictate how StartTracking() works, so do it before you call that.

You can test this in the RemoteAuthoring scene by adding any AR Location and commenting out line 47 in PersistentARDemo.cs. I hope this helps!