Skip to main content
New Participant
April 27, 2023

Using oculus link in Unity play mode deletes the OVRManager script from the scene

Seems to have happened in a recent update, if you're using Oculus link with Unity and hit play, the OVRManager script is deleted from your main camera. This means you're left with nothing but head tracking, controllers don't work, and you get a bunch of errors.

I've tracked it to this line in OVRManager.cs, line 1721

 

    private void InitOVRManager()
    {

        // Only allow one instance at runtime.
        if (instance != null)
        {
            enabled = false;
            DestroyImmediate(this);

            return;
        }

 

 

 

 

Commenting that if statement out, I came to find another camera with an OVRManager on it is created at runtime before also being deleted by its own DestroyImmediate() call

I have no idea what OculusMRC_BackgroundCamera is, where it came from, or why it's breaking everything.

 

 

 

 

 

 

 

    This topic has been closed for replies.

    1 reply

    New Participant
    April 27, 2023

    Following the thread of the MRC (Mixed Reality Capture) camera being the issue, I disabled these settings in the OVR manager and the issue stopped

    This seems like a big oversight/bug though. What if I want to use mixed reality capture?