- Home /
toggle Vr off and on for all scenes with Google Cardboard?
I've recently been using google cardboard to make a fun game.. but have been trying to add an option to switch from "vr mode" and non vr mode.. This string of code works very well:
public void ToggleVRMode() { Cardboard.SDK.VRModeEnabled= !Cardboard.SDK.VRModeEnabled; }
but only works for the current scene, and when changing scenes, it usually defaults back to vr mode on.. Is their a way to universally toggle vr mode for the whole game?
Answer by nice-nate · Apr 07, 2017 at 06:27 AM
Have you tried messing with VRSettings.enabled? In this documentation it says it enables or disables vr globally.
Your answer
Follow this Question
Related Questions
CardboardVR on Samsung Note4, wired phenomenon, 2 cubes in 2 eyes 0 Answers
Make App compatible with Cardboard and Daydream 1 Answer
Cardboard VR Game on Iphone just fills half the Screen 1 Answer
Video system / rendering is stuck on Android OculusGO 0 Answers
Why I need to put my phone to Gear VR to debug google cardboard app? 3 Answers