"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

How to restart find and tracker at runtime?

Hello,

 

I want to restart find and tracker at runtime, rather than reloading the scene,how to do ?

 

I tested the following code , but  it looks like it's still affected by the last tracker.

 

ObjectTracker tracker = Vuforia.TrackerManager.Instance.GetTracker<ObjectTracker>();

            tracker.Stop();

            foreach (DataSet ds in tracker.GetDataSets())             {                 tracker.DeactivateDataSet(ds);                 tracker.ActivateDataSet(ds);             }

            tracker.Start();

How to restart find and tracker in runtime?

 

Hi,

The approach seems to be correct one. Another thing to consider if you have extended tracking activated in the scene, this might affect and could be the culprit.