google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 402 forks source link

AugmentedImage.TrackingState always equals TrackingState.Tracking #607

Open dorkbot opened 5 years ago

dorkbot commented 5 years ago

SPECIFIC ISSUE ENCOUNTERED

I'm testing this scene -> https://github.com/google-ar/arcore-unity-sdk/blob/master/Assets/GoogleARCore/Examples/AugmentedImage/Scenes/AugmentedImage.unity And this Class -> https://github.com/google-ar/arcore-unity-sdk/blob/master/Assets/GoogleARCore/Examples/AugmentedImage/Scripts/AugmentedImageExampleController.cs

Once an image is tracked, it is always tracked. AugmentedImage.TrackingState always equals TrackingState.Tracking, even if the image is gone (closed). The result is that the AR 3D prefab object never goes away.

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. Put a Debug.Log in AugmentedImageExampleController
  2. Build to device and look at Logcat

WORKAROUNDS (IF ANY)

Using AugmentedImage.TrackingMethod gives a better result.

Sigurd922 commented 4 years ago

Same issue

janeshvar commented 4 years ago

i am also facing same issue tracked prefab always there in Android. Is there any solution for this i ma using AR Foundation 4.0.0.(Preview) and Unity 2019.3.3.

Thanks in Advance.