Search Unity

AR Foundation Image Tracking change ImageTrackedPrefab during run

Discussion in 'AR' started by Westycoot, Aug 12, 2020.

  1. Westycoot

    Westycoot

    Joined:
    Feb 11, 2020
    Posts:
    4
    Hi all,

    I have got image tracking working and it displays the initial prefab that I give it.
    I want to be able to change the prefab that is shown during runtime.

    I have tried using this arTrackingImageManager.trackedImagePrefab = GameObjectPrefab;

    This works the first time it assigned, but then cannot be updated to a new prefab to show.

    Do I need to somehow reset the image tracker to recognise this trackedImagePrefab change?

    Many thanks.