/// <summary> /// Updates the vision mode. /// </summary> void UpdateVisionMode() { if (Input.GetKeyDown(KeyCode.F2)) { if (VisionMode == false) { VisionMode = true; strVisionMode = "Vision Enabled: ON"; OVRDevice.SetVisionEnabled(VisionMode); } else { VisionMode = false; strVisionMode = "Vision Enabled: OFF"; OVRDevice.SetVisionEnabled(VisionMode); } } }
/// <summary> /// Updates the vision mode. /// </summary> void UpdateVisionMode() { if (Input.GetKeyDown(KeyCode.F2)) { if (VisionMode == false) { VisionMode = true; #if SHOW_DK2_VARIABLES strVisionMode = "Vision Enabled: ON"; #endif OVRDevice.SetVisionEnabled(VisionMode); } else { VisionMode = false; #if SHOW_DK2_VARIABLES strVisionMode = "Vision Enabled: OFF"; #endif OVRDevice.SetVisionEnabled(VisionMode); } } }