Error in Shared AR Image tracking sample

Include the following details while filing a bug report (edit as applicable):

  • Issue category: Multiplayer/ ARDK Documentation / Unity Example Package
  • Device type & OS version: Android
  • Host machine & OS version: Windows
  • Issue Environment : Unity Mock / On Device
  • Xcode version:
  • ARDK version: 3.11
  • Unity version: 2022.3

Bug reproduction steps:
Running the Image Tracking Sample from the sample applications.

When I test this application or follow the tutorial for creating a shared AR based on an image from scratch, the OnColocalizationTrackingStateChanged is called with Tracking set to true immediately (which should only happen for the mock networking)

The expected behavior is to see the panel that prompts the user to scan for the image, but instead, the pin and the UI that instantiates the prefab is enabled.

This happens on both the emulators and deploying on an android device from the cloned project.

Hi Ana,

Apologies for the delayed reply, I’m going back through some forum posts and it appears some replies never propagated from our end over the the public forums.

Have you had a chance to test this out on newer versions of ARDK? We are currently on version 3.11 and I would recommend upgrading if possible.

Hi Jesus yes, I was using version 3.11

So I realized this happened because after looking at the sharedAR-upm code, there was an if/else statement in the ImageTrackingColocalization that if the code was running on the editor, it should enable the sharedAR automatically and not wait for the image versus running on the device. Perhaps there could be clearer documentation about this

Thank you!

Hi Ana,

I haven’t had a chance to look at the code just yet, but did want to confirm if you’ve resolved the issue and just wanted to point out the error in the script, or if it’s still ongoing?