Forum Discussion
learnwithus
7 years agoHonored Guest
OVRHeadsetEmulator doesn't move the view in the Game panel
Hello, I would like to be able to emulate the headset while developing in Unity, so I don't have to build to a device whenever I want to test. However, the OVR Headset Emulator doesn't move the vie...
khelkun
3 years agoExplorer
Same issue after upgrading Unity from 2019 to 2021 LTS and Oculus Integration package to 49.0.
Indeed, as suggested by @filipefmiranda, "fixing"
OVRManager.Awake()in OVRManager.cs seems to be the solution. IMHO it's because when using OpenXR SDK InitOVRManager() is called only if OVRPlugin is intialized, but it should be called too if you're running the app in the Unity editor, here is fix suggestion:
// Oculus/VR/Scripts/OVRMajnager.cs
private void Awake()
{
#if !USING_XR_SDK
//For legacy, we should initialize OVRManager in all cases.
//For now, in XR SDK, only initialize if OVRPlugin is initialized.
InitOVRManager();
#elif UNITY_EDITOR
InitOVRManager();
#else
if (OVRPlugin.initialized)
InitOVRManager();
#endif
}N.B: By the way where is the Oculus Unity documentation page about the key bindings to move head (and use controllers) from the game view of the Unity editor? I was unable to find it.
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 years ago