- Create a project with Unity 4.6.2 (or 4.6.1p4, p5) - Import OculusUnityIntegration.unitypackage (0.4.4) - Replace Main Camera with OVRCameraRig - Play causes this error.
NullReferenceException: Object reference not set to an instance of an object OVRCameraRig.ConfigureCamera (OVREye eye) (at Assets/OVR/Scripts/OVRCameraRig.cs:187) OVRCameraRig.UpdateCameras () (at Assets/OVR/Scripts/OVRCameraRig.cs:116) OVRCameraRig.LateUpdate () (at Assets/OVR/Scripts/OVRCameraRig.cs:92)
- And restarting Unity and reopening the project causes an immediate crash (Unity Bug Reporter).
Unity 4.6.1p3 works fine, so I suspect this problem is caused by the Oculus related changes brought on Unity 4.6.1p4. Maybe the upcoming Oculus SDK will work fine? 🙂