Log in or register to post comments

Disable and re-enable Vuforia error

June 24, 2018 - 8:29pm #1

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();
        }));
    })); }

Disable and re-enable Vuforia error

June 25, 2018 - 10:07am #2

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

Log in or register to post comments