Created
December 20, 2016 00:34
-
-
Save codenamejason/0265dafd1df251ed12c9549d3bdc7f5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ToggleVR : MonoBehavior | |
{ | |
// Toggle VR settings. | |
private void Update () | |
{ | |
// If V is pressed, VRSettings.enabled | |
if(Input.GetKeyDown(KeyCode.V)) | |
{ | |
VRSettings.enabled = !VRSettings.enabled; | |
Debug.Log("Changed VRSettings.enabled to: " + VRSettings.enabled); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment