cancel
Showing results for 
Search instead for 
Did you mean: 

Loading a new scene in unity make OVRManager throws errors

fredriksson.daniel
Honored Guest

I  have oculus integration vr 32 in unity 2021.1.16.

If I open a scene, play it with oculus link cable it works fine. 

But if I open another scene, either just choosing another scene in unity or load a new scene from in the game, it starts throwing this error:
MissingReferenceException: The object of type 'OVRCameraRig' has been destroyed but you are still trying to access it.

I have an OVRCameraRig prefab in each scene (which has OVRCameraRig and OVRManager) which is oculus own prefab.

I suspect that something lingers in OVRManager when I switch scenes. How do you use the OVRManager? Do you create it in 1 scene and then mark it for "DontDelete" or is there something that must be made in OVRManager to stop this error?

 

0 REPLIES 0