Hi,
I'm unable to disable and re-enable Vuforia. It will give me Could not create dataset and Could not start tracker error.
Am I doing it wrongly or is it a Vuforia thing?
Thank you!
Here is what I'm doing in my script:
private void OnEnable() { VuforiaBehaviour.Instance.enabled = false; VuforiaRuntime.Instance.Deinit(); VuforiaARController.Instance.SetWorldCenterMode(VuforiaARController.WorldCenterMode.DEVICE_TRACKING); VuforiaConfiguration.Instance.DeviceTracker.TrackingMode = DeviceTracker.TRACKING_MODE.ROTATIONAL; StartCoroutine(waitBeforeReenableVuforia(() => { VuforiaRuntime.Instance.InitVuforia(); StartCoroutine(waitBeforeReenableVuforia(() => { VuforiaBehaviour.Instance.enabled = true; CameraStart(); })); })); }
Hello Bendistocratic,
You only need to disable and re-enable the VuforiaBehaviour, not the VuforiaRuntime. Try again with that section of the code removed and let me know if you're still seeing this issue.
Thanks,
Vuforia Support