Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
phileday's avatar
phileday
MHCP Member
10 years ago

Oculus SDK and SteamVR in the same project

I've been developing my app for a while using the Oculus SDK without problems and now I have the opportunity to add SteamVR support to my project but I'm finding it difficult to find any information on doing this so that I have both SDK's in the same project.

ultimately I want the program to launch the Oculus SDK if the Oculus is running but no SteamVR is running, run SteamVR if that is running and if neither are running run a standard desktop mode.

Has anyone had any experience with this or have any ideas about how to do this.

Any help would be greatful.

Phil

2 Replies

Replies have been turned off for this discussion
  • I haven't looked at the SteamVR Unity package, but you can check whether Unity is using the Rift with VRSettings.loadedDevice == VRDeviceType.Oculus. If that's true, Unity's first-party VR support is currently set to use the Rift or Gear VR. If the loadedDevice is "None" or something else, you could destroy any Oculus Utilities in your scene, such as OVRManager and enable another VR SDK.
  • Thanks

    I'll have a look at that and see if I can find a decent way of doing that. If I work it out I'll post the solution I came up with. :)