Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created September 17, 2015 08:54
Show Gist options
  • Save unitycoder/ecec1120fd4418e29bfa to your computer and use it in GitHub Desktop.
Save unitycoder/ecec1120fd4418e29bfa to your computer and use it in GitHub Desktop.
Unity Toggle Oculus on/off
using UnityEngine.VR;
// toggle oculus on/off
VRSettings.enabled = !VRSettings.enabled;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment