EDIT: Vuforia version 6.5.22
Hello !
I am working on a HoloLens application (Unity 2017.2.0f3 with Vuforia 6.5.22). Everything works fine but when I want to reload my scene the screen freezes. In play mode my console shows the following error multiple times:
[quote]Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnityEngine.MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object.[/quote]
I can see that nothing has been deleted. I don't know where this error comes from, am i missing something ? Any suggestions?
Edit: This problem occurs when I select "Optical See-Through" for Eyewear Type and "Hololens" for See Through Config.
Thanks !
Hello devlodc,
Hello devlodc,
How are you reloading your scene?
Thanks,
Vuforia Support
Hello,
Hello,
I'm reloading it in the calssic way:
Hello,
Hello,
I've got the same problem
My project contains 4 almost the same scenes.
Each of them has:
1 - ARCamera
2 - ImageTarget
I fixed it.
I fixed it.
You have to delete ARCamera from every next scene.
This object need to be only in first scene.
You have to add this script to ARCamera:
If anyone needs a solution
If anyone needs a solution where you don't want to keep the camera for every scene (e.g. because you wired it in the editor):