NullReferenceException - Camera Offset problem
Hi guys, I'm attempting to port a project over to the Oculus and I've been having a lot of success so far but I've now hit a problem that is confusing me.
I've got a game that starts at the menu screen with a camera facing one way and then it moves backwards to the player starting location where it hands over to the actual player camera. However on the player camera I'm getting one error that's constantly stacking up on update:
I can see the effects it's casuing as it's not halting the game in anyway but the camera offset isn't working correctly so you feel a bit cross-eyed when using it.
The thing that's really confusing me is that the menu camera's are working perfectly fine, I've attempted bringing in the OVRCameraController again but it hasn't done anything differently.
Any suggestions would be much appreciated!
Edit://
I've put in some debug comments to see what's going on, it finds the cameras perfectly fine for my menu character but then it doesn't seem to find either on my player character. Still a bit confused but that may help someone help me :P
I've got a game that starts at the menu screen with a camera facing one way and then it moves backwards to the player starting location where it hands over to the actual player camera. However on the player camera I'm getting one error that's constantly stacking up on update:
NullReferenceException
OVRCameraController.ConfigureCamera (UnityEngine.Camera& camera, Single distOffset, Single perspOffset, single eyePositionOffset) (at Assets/OVR/Scripts/OVRCameraController.cs:263)
OVRCameraController.UpdateCameras() (at Assets/OVR/Scripts/OVRCameraController.cs:246)
OVRCameraController.Start() (at Assets/OVR/Scripts/OVRCameraController.cs:178)
I can see the effects it's casuing as it's not halting the game in anyway but the camera offset isn't working correctly so you feel a bit cross-eyed when using it.
The thing that's really confusing me is that the menu camera's are working perfectly fine, I've attempted bringing in the OVRCameraController again but it hasn't done anything differently.
Any suggestions would be much appreciated!
Edit://
I've put in some debug comments to see what's going on, it finds the cameras perfectly fine for my menu character but then it doesn't seem to find either on my player character. Still a bit confused but that may help someone help me :P
