List
I have a question about TrackerManager.GetInstance().DestroyTracker()
Posted Date: 2024-07-04 8:33     Edited Date: 2024-07-05 8:10     Writer: maxst.test.dev01

After using TrackerManager.GetInstance().DestroyTracker() because I want to switch 2dmap
GetInstance().DestroyTracker() and then set a new 2dmap, but it does not recognize the image.
Is there a solution?
By the way, the camera is working.

//Here is the source code

void async SetTracker(string packageFolderPath)
{
    List<string> filenames = GetFileName(packageFolderPath);

    TrackerManager.GetInstance().DestroyTracker(); //データ削除

     foreach (var item in filenames)
     {
         TrackerManager.GetInstance().AddTrackerData(Path.Combine(packageFolderPath, item)); //set 2dmap
     }

     TrackerManager.GetInstance().LoadTrackerData();
     await UniTask.WaitUntil(() => TrackerManager.GetInstance().IsTrackerDataLoadCompleted(), cancellationToken: ctsTrackerAdd.Token);
     TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE);
     CameraDevice.GetInstance().Start();
}

development details
1. SDK Version
2. Development Environment: (eg. Unity-Android, Unity-iOS, Unity Editor)
3. Tracker
4. License Type(Free):

Posted Date: 2024-07-05 8:10     Edited Date: 2024-07-05 8:10     Writer: sejin

Thank you for your interest in MAXST AR SDK.

Add the StartTracker function first.

 

example)

TrackerManager.StartTracker(...)

TrackerManager.AddTrackerData(...)

TrackerManager.LoadTrackerData(...)

 

Thank you.

Best regards,
Shelden
MAXST Support Team