Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Build a Unity 3d game for Steam with Oculus Rift + HTC Vive support

Discussion in 'VR' started by masta-yoda, May 23, 2020.

  1. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    I have built a game for Oculus using the Oculus SDK and OVRPlayerController to control the player position and input. Now I want to publish this game to Steam but want to target not only Oculus Rift devices but also the HTC Vive.

    What is the best approach to build a VR game which will work on both Oculus Rift and HTC Vive devices? Should I use the Oculus SDK (OVRPlayerController/CameraRig) or the OpenVR SDK (CameraRig) when building a package for steam? Or is it better to build in different prefabs to control the player and then depending on a device activate one or another?

    Please advise, what is the best practice here.
     
  2. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    I've ended up creating multiple prefabs for every build and then a wrapper which instantiate a required prefab based on selected build configuration.