AR foundation tracked image events

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

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@2.1/api/UnityEngine.XR.ARFoundation.ARTrackedImageManager.html#UnityEngine_XR_ARFoundation_ARTrackedImageManager_trackedImagesChanged

1 Like

Dilmer really has the best and clearest explanations for AR. Even better than downloading the Unity ARFoundation examples from Github:

2 Likes

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

1 Like

hey did you get a solution for this ? i need to instantiate and delete prefab on image found and lost respectively.
Thanks in advance.

nope, I just switched to euforia instead, but im still looking for it

We have sample scenes for this: GitHub - Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation

As well as documentation: AR Tracked Image Manager component | AR Foundation | 5.0.7

1 Like

thanks, ill definitely check it out!