Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Arowx's avatar
Arowx
Explorer
12 years ago

Rift Game to None-Rift Webplayer

Hi I was wondering if Oculus could update the Unity rift kit so that it switches to mono when we build for web-player demos?

Or they could add Rift support to the Unity Webplayer? ;) ;)

Also is there a clean way to exclude the Oculus rift dll's from a Unity build, as they seem to cause a crash when I build to webplayer?

1 Reply

Replies have been turned off for this discussion
  • owenwp's avatar
    owenwp
    Expert Protege
    Theoretically nothing should crash as long as you prevent any calls to the OVR SDK from being made. Perhaps add a little code to the initialization of OVRDevice that disables it if platform == webplayer.

    Alternatively, don't put the OVR player in your scene. Instead make two player prefabs, one with OVR and one without, and write a script that chooses which prefab to spawn based on the application platform.