Enable WebVR exports via Unity 5! Included are a full sample project and an importable UnityPackage.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Built by the Boondogl team - if you have a great WebVR game you'd like to bring to Boondogl, contact us!

To get up and running in WebVR, follow these steps:

  • Get your hands on an Oculus Rift DK2 or CV1, and install Oculus Runtime 1.3.2
  • Download and install Firefox Nightly or a Chromium WebVR Build
  • Follow these instructions to enable WebVR in Nightly, or follow the readme instructions on the Chromium page.
  • Grab either the entire sample project or just the UnityPackage from this repo
  • Open Unity (either the sample project or your own project with the UnityPackage added) and replace your MainCamera with the WebVRCameraSet prefab
  • Make sure StereoCamera.cs is attached to the parent node of the prefab
  • Go to File > Build Settings and change your Platform to WebGL - Leave Development Build unchecked
  • Go to Edit > Project Settings > Player, then under the Resolution and Presentation section, select WebVR as your WebGL template
  • In the same Project Settings under Publishing Settings section, make sure your WebGL Memory Size is set to a minimum of 768MB to avoid out of memory errors
  • Depending on the complexity of your game, you may want to set it to 1024MB. This causes an array allocation error in the current Chromium build, but is fine in Firefox for more complex games
  • Build to WebGL and give it a shot in Firefox Nightly or Chromium!

This template was created using an original code drop from GitHub user gtk2k. You can find the original project, with updates from the Mozilla team to bring it up to WebVR 1.0 standards, here: https://github.com/gtk2k/Unity-WebVR-Assets