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();
Hello fabiotg54,
You'll want to modify that function to no longer have arguments for trackableName or enabled and then modify the foreach loop to not check against trackableName or enabled, but instead just run the line "tb.Trackable.StopExtendedTracking();" With these changes, you'll have a simple function that takes in no arguments and just disables extended tracking on all trackables. Once this is done, you can hook this function up to a Unity button to trigger it.
Thanks,
-Vuforia Support