"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

The licence and max hints chestnut

Hi,

 

My app has multiple scenes one that as normal AR and one the is AR/VR with Google Cardboard and I am experience these consistent issues:

In IOS

1. dependant on which one I view first then visitng the next I get the invalid vuforia key error even though it is using exact same key in the other scene?

2. when debugging I open full AR scene and all is well.  I then go back to menu and select AR/VR scene and again I get the licence error but in the console I get the same issues on this locked thread https://developer.vuforia.com/forum/issues-and-bugs/nsrangeexception-after-reloading-scene-ios-unity

I do not turn the camera off or have keep alive set but have a loading scene that is displayed as a place holder while the AR or AR/VR scenes load that has this code:

 

using UnityEngine;
using System.Collections;

public class LoadingARScript : MonoBehaviour {
	
	private bool mChangeLevel = false;
	
	void Awake() {
		Resources.UnloadUnusedAssets();
		System.GC.Collect();
	}
	
	void Start() {
		
		Resources.UnloadUnusedAssets();
		
		System.GC.Collect();
		
		Application.backgroundLoadingPriority = ThreadPriority.Low;
		
		mChangeLevel = true;
	}
	
	void Update() {
		
		if (mChangeLevel) {
			
			LoadUserDefTargetsScene();
			mChangeLevel = false;
		}
	}
	
	private void LoadUserDefTargetsScene() {
		
		Application.LoadLevelAsync("ARScene");
	}
}

 

this is total confusion..

Open AR/VR first then back to menu and into AR only all works OK and can bounce back and forth between them pretty much trouble free.

But....

Open AR only then back to menu and into AR/VR the app crashes...every time..?

OK and I find that from the AR only scene I have a button that simply calls Application.LoadLevel("Home");

When this runs I see this in the console which I have no idea where to find the code that this refers to...but could this be the bug causing me all this grief?