Skip to main content
Up and Coming
March 1, 2016

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
    This topic has been closed for replies.

    2 replies

    Inspiring
    March 1, 2016
    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.
    philedayAuthor
    Up and Coming
    March 1, 2016
    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. :)