Search Unity

Question Issue with Image Tracking Manager

Discussion in 'AR' started by RJCastro, Apr 8, 2021.

  1. RJCastro

    RJCastro

    Joined:
    Jul 29, 2018
    Posts:
    2
    Unity: 2020.3.3f1
    ARFoundation/ARCore: 4.0.12
    Android version: 9.0

    Hi all!

    I have a small ar project where I only want to track images. I get the images to be tracked and an object is instantiated in them using the script "ARTrackedImageManager" and "ReferenceImageLibrary".
    The problem is the instantiated object only appears for a second and then disappears. The same behavior happens for every new image that is tracked, and that image never works again.

    In my own scripts called "CaptureImage.cs" i check the event ARTrackedImageManager.trackedImagesChanged, and this only works for the first second (30fps, i used a counter) with the first image. Then I can continue reading other images and the same process is repeated but I never capture the ARTrackedImageManager.trackedImagesChanged event again.

    I downloaded the "ARFoundation-samples-main" project using the same Unity engine version and the same plugin versions. I've gotten it to work properly here, so I've tried to copy all the settings, but the result is still the same.

    Somebody can help me please?