Search Unity

Null exception when running in the Editor

Discussion in 'Vuforia' started by monark, Oct 26, 2018.

  1. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    I've just updated a second project to use Vuforia, the first one I did is now working ok after a number of issues but upgrading to Vuforia 7.5.26 sorted 99% of them.
    However in the second project which has the same codebase just different assets when I run it in the Editor I get the following error

    First the emulator database fails

    Then this error happens and I can't test in the editor
    Why would it work in one project but throw this error in another?

    I should add that it works on the iPad once compiled, it's only an issue in the Editor
     
    Last edited: Oct 26, 2018
  2. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    Ok I've found the solution.
    Although I exported my AR scene from the working project into an Asset bundle and imported into the new one this doesn't seem to be enough to load everything needed to get it working.
    I had to also add a second AR camera to my new project to get everything to initialise and then remove it again.
    After doing that the database seems to be built and ok and all the errors disappear.
     
    meedabit likes this.