Unity to WebVR Just Got Better!

February 16, 2018

Unity has been the preferred platform for many VR developers, and there has been lots of interest in crossing over VR Unity apps into the WebVR Space. There have been solutions in this area for a while, but the solution quality keeps getting better!

Create VR on the Web using Unity3D

https://assetstore.unity.com/packages/templates/systems/webvr-assets-109152

Github: 

Using the Unity to WebVR route removes the need for any platform specific SDKs and provides the ability to be responsive to different VR configurations on the web, a.k.a. ‘responsive VR’.

Not all features of a Unity build will work in WebVR, or rather WebGL, which is how web browsers create 3D. The following area of Unity documentation gives a list of potential export issues:

https://docs.unity3d.com/2018.1/Documentation/Manual/webgl-browsercompatibility.html

Currently, only Microsoft Edge and Windows Mixed Reality WebVR are directly supported. For other browsers, you have to use the WebVR-Polyfill. Be prepared for (unpleasant) suprises in iOS!

One problem with this strategy is that the resulting WebVR package is larger than direct coding in JavaScript, using a JS framework using Three.js or Babylon.js., or even meta-frameworks like A-Frame VR Markup. But it is a great way for Unity shops to begin exploring the WebVR space.