Start a new topic

Can Tracker change WTO in Script?

Wikitude SDK : Professional Edition v9.2

Unity : 2019.4.4f


Hello,


In the script, I would like to change the Tracker's Target Collection to another WTO file.


image


I tried changing TargetPath in Tracker.TargetCollectionResource, but only what was seen in the Inspector was changed, and the target perceived by the actual tracker remained unchanged.


  

        if(isCameraWayLeft)
        {
            Tracker.TargetCollectionResource.TargetPath = "sorento_left.wto";
        }
        else
        {
            Tracker.TargetCollectionResource.TargetPath = "sorento_right.wto";
        }

  


How do I change the WTO file when I want to script it and recognize the target of the WTO file?