By based
on Thu, 12/24/2015 - 03:51
Vuforia 4.2.3
Unity 4.6.9f1
--------------------------------------------------------------------------------------------
It added a new script in ARCamera.
Start of the new script added the following sources:
Start(){
behaviour = (QCARAbstractBehaviour)UnityEngine.Object.FindObjectOfType(typeof(QCARAbstractBehaviour));
CameraDevice.VideoModeData videoMode = CameraDevice.Instance.GetVideoMode(behaviour.CameraDeviceMode);
}
but Error.
NullReferenceException: Object reference not set to an instance of an objectVuforia.CameraDeviceImpl.GetVideoMode (CameraDeviceMode mode)ImageTests3.Start () (at Assets/01_Scripts/03_AR/ImageTests3.cs:54) This script will release in other projects.And I was tested in vuforia-unity-5-0-10.However, the same error occurs. Please Help. I'm sorry I do not speak English well.I used a translator.
CameraDevice.Instance(WebCam is Null)
You are getting a NullReferenceException because you are accessing the CameraDevice.Instance singleton when it is not initialized yet;