"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Vuforia Delayed Initialization with Scene Switching

Hello, 

Here's the situation. I have a project where I start off without Vuforia. The starting scene contains my camera that persists throughout the application. This camera is the one that contains my VuforiaBehaviour. I then move to a scene selector menu. On selection of scene option, a new scene loads additively. The new scene has my datasets and this is where I want to Initialize Vuforia. I can do all of this without issue by calling VuforiaRuntime.Instance.InitVuforia() and then calling VuforiaBehaviour.Instance.enabled == true. The issue arrives when I move back to the scene selector scene. On selection of a new scene, vuforia is no longer working, even with the calls of InitVuforia and VuforiaBehaviour.enabled == true

Is there a step of the process I am missing? I have tried to deInit on scene unload and Init on scene load  but nothing works. 

 

Any help would be appreciated.

Thanks.

 

Unity version : 2018.4.11

Vuforia Version : 8.3.8

For reference, here lies the issue when trying to reinitialize. It seems to be looking for the old image target behaviours, as if they weren't detracked when VuforiaBehaviour was disabled.

 

For anyone stumbling on this in the future :

You have to reassociate trackables after waiting a couple of seconds after the vuforiabehaviour instance is enabled. Code is as follows.