Assign Model to TrackedImage

Hi,

I created a ARTrackedImageManager with XRReferenceImageLibrary and filled it at runtime.
Now I want to assign models to the Libary. Is that possible? Or whats the best way to solve this?
The concret scenario:
After the an image is recognized (via trackedImagesChanged and ARTrackedImagesChangedEventArgs added), a gltf model is beeing downloaded. Now it should “stick” to the belonging (an maybe moving) image.

Whats the best solution for this?
Unity 2023-03

Thank you very much!

Do not use Unity 2023. Unity 2022.3 is recommended for Production.

3D model is not assigned to the library. Prefab with 3D Model can be assigned in ARTrackedImageManager component on XR Origin Game Object.

To implement more advanced logic, there are several updated resources to implement Multiple Image Tracking:

  • Official Unity Examples with Multiple Prefabs for different versions of AR Foundation:
  • My Example with Multiple Data (based on different Tracked Images) for the Only Game Object.