Forum Discussion
ComeOnAndSam
2 years agoExplorer
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
- ComeOnAndSamExplorer
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?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 1 month ago