I am currently facing two issues using Vuforia and Unity for an AR app. I decided to have them both in a single post since they have some relation to each other.
Camera is so zoomed in it's impossible to discern anything - but the detection still works, when I somehow manage to get the target in frame.
This problem seems to only happen when switching scenes (the very first scene loaded works just fine though). If I build the same project, with the same settings, but only the AR scene, everything works. But this is not really helpful since I am forced to cram everything in a single scene.
I've tried messing around with every setting I could think of, from Vuforia, Camera and Target. I've tried adding AR cameras to non-AR scenes and disabling VuforiaBehaviour on them, like I read somewhere. I've tried a script that disables everything Vuforia related in my cameras on the Start() method. I've even tried making a kind of singleton camera that destroys all but the first instance right during Awake(). Nothing works... at all.
So, despite complaining, I still tried putting the whole app in a single scene. But then I found out the targets no longer worked!
If I build an AR scene featuring a single target, both images I am using work perfectly fine - they are detected almost instantly.
But when both are in the same scene, one of them is not detected. And if I switch their order in the Hierarchy, both stop working.
This is baffling.
Specially since their game objects are inactive by default and I have to explicitly choose one from a menu, which then activates the correct target while deactivating the other, so there should be no overlap or whatever.
And changing the number os simultaneous image targets in the settings did not fix this.
So, you see mi dilemma now? Having both targets in the same scene seems to be breaking one of them, but loading scenes is breaking Vuforia itself...
Whats more, some older apps I had which relied on Vuforia did not experience such problems... but downgrading Unity and Vuforia is out of the question (it would break too many things).
I cannot afford to give up, but I am also getting a little desperate so... help?