Search Unity

Resolved AR foundation tracked image events

Discussion in 'AR' started by AkamaruDesign, Dec 19, 2020.

  1. AkamaruDesign

    AkamaruDesign

    Joined:
    Dec 17, 2016
    Posts:
    13
    as the title suggests, I am looking for a way to trigger a function when an image is recognized.

    with vuforia it used to be something like "OnTracked"
    but since I went to the AR Foundation I have been looking for this and I have not found it, maybe I have overlooked something.

    thanks for your help
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,144
  3. Voronoi

    Voronoi

    Joined:
    Jul 2, 2012
    Posts:
    589
    Dilmer really has the best and clearest explanations for AR. Even better than downloading the Unity ARFoundation examples from Github:

     
    B_ware and AkamaruDesign like this.
  4. AkamaruDesign

    AkamaruDesign

    Joined:
    Dec 17, 2016
    Posts:
    13
    HI, i realized that onimagechange events are not the same as tracking states, wich are better for showing or not prefabs for images, anyway i had to chech for visibility on camera in order to take away some object since traking state once gets tracking or limited never gets none, and its imposible to tell why is this happening
     
    KyryloKuzyk likes this.
  5. shivanshmywhoosh

    shivanshmywhoosh

    Joined:
    Feb 28, 2023
    Posts:
    4
    hey did you get a solution for this ? i need to instantiate and delete prefab on image found and lost respectively.
    Thanks in advance.
     
  6. AkamaruDesign

    AkamaruDesign

    Joined:
    Dec 17, 2016
    Posts:
    13
    nope, I just switched to euforia instead, but im still looking for it
     
  7. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
  8. AkamaruDesign

    AkamaruDesign

    Joined:
    Dec 17, 2016
    Posts:
    13
    thanks, ill definitely check it out!