Search Unity

Question AR Foundation Image Tracking doesn't work with 2 Scenes

Discussion in 'AR' started by Flowkiii, Oct 21, 2020.

  1. Flowkiii

    Flowkiii

    Joined:
    Mar 30, 2018
    Posts:
    5
    Hello,

    I have two different Scenes where I want to use the Image Tracking. When I change to the Scene the first time everything works fine, but when I come back to the Scene again (with SceneManager.LoadScene) the trackedImagesChanged doesn't reach the eventArgs.added instead directly the updated one. Shouldn't it be that these events get deleted when I change a Scene? I also tried to destroy the ArTrackedImageManger before I change the Scene but without results. In AR Foundation 2 and Unity 2019.2 the problem didn't occur. Now I changed to AR Foundation 4 and Unity 2019.4 and this happens. I am testing it on iOS.
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,145
    mogames13, CybernautX and yutashx like this.
  3. Flowkiii

    Flowkiii

    Joined:
    Mar 30, 2018
    Posts:
    5
    thank you, it solved my problem :)
     
  4. luizdonin

    luizdonin

    Joined:
    May 4, 2023
    Posts:
    1
    I love you KyryloKuzyk, 1 week with this bug in my project, and you saved my life
     
    KyryloKuzyk likes this.