I'm using a code to enable and disable a trackable. But it seems that is not working.
ImageTracker imageTracker = (ImageTracker)TrackerManager.Instance.GetTracker(Tracker.Type.IMAGE_TRACKER);
DataSet dataSet = imageTracker.GetActiveDataSet();
int numTrackables = dataSet.GetNumTrackables();
for (int i = 0; i < numTrackables; ++i)
TrackableBehaviour trackable = dataSet.GetTrackable(i);
if (trackable != null && trackable.TrackableName == trackName)
trackable.enabled = enable;
Could you tell me if this code should work or not? And maybe some other code that's working?
Thank you !