I'm really newbie in Vuforia Development and I need help with the cloud recognition of different image targets... The problem is that my application developed in Unity crashes when I decide to detect a different image target.
I have 2 image targets (A PES 2015 xbox DVD cover and a Leap Motion box), When the camera sees one of those image targets it shows the prefab without any problem, the problem is when I try to detect the other image target after the first one, there my app crashes with the following error log:
MissingReferenceException: The object of type 'ImageTargetBehaviour' 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.
Vuforia.StateManagerImpl.UpdateCameraPose (UnityEngine.Transform cameraTransform, UnityEngine.Transform parentTransformToUpdate, .TrackableResultData trackableResultDataArray, Int32 originTrackableID)
Vuforia.VuforiaManagerImpl.UpdateTrackers (FrameState frameState)
Vuforia.VuforiaManagerImpl.Update (ScreenOrientation counterRotation, Boolean reapplyOldState)
Vuforia.VuforiaAbstractBehaviour.UpdateStatePrivate (Boolean forceUpdate, Boolean reapplyOldState)
The problem doesn't happens if I decide to stop the target finding and then restart it, but I don't want that happen, I want to detect multiple targets with different projections in runtime without pushing a button everytime I decide to scan a new ImageTarget.