Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ComeOnAndSam's avatar
ComeOnAndSam
Explorer
2 years ago

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.

 

 

 

 

 

 

 

1 Reply

Replies have been turned off for this discussion
  • 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?