So we have finally configured our way around the new DLL and are abel to once again dynamically load in our datasets at runtime. The only remaining issue is that we want to set the Extended tracking value at runtime for our targets.
I have followed the code at the bottom of this page: https://developer.vuforia.com/resources/dev-guide/extended-tracking but I end up with the error:
Type `TrackableBehaviour' does not contain a definition for `StartExtendedTracking' and no extension method `StartExtendedTracking' of type `TrackableBehaviour' could be found (are you missing a using directive or an assembly reference?)
to confirm, I am attempting this at the point where I attach my AR content to the runtime tracker.
void Attach() { Debug.Log("SEARCHING..."); StateManager sm = TrackerManager.Instance.GetStateManager(); IEnumerable<TrackableBehaviour> tbs = sm.GetTrackableBehaviours(); foreach(TrackableBehaviour tb in tbs) { if(tb.TrackableName == m_Tracker_Name) { //some other things tb.StartExtendedTracking();
It looks like that the documentation is slightly incorrect here; the actual code would be:
tb.Trackable.StartExtendedTracking(); // CORRECT
as opposed to the (incorrect) version:
tb.StartExtendedTracking(); // INCORRECT
We will update the developer guide. Good catch !