I've been searching for vr mode toggle but it seems to be for older versions. anyways, im still new in unity3d. I've tried from this vid, but it seems like thers an error. why? i dont own the video. the error comes from the playerpref. i've changed the cardboard.SDK to GvrViewer.Instance please do help. thanks alot.
When you say toggle, are you looking for a script property you can change on the fly or are you looking for a setting that enables VR Mode? For the former, VRSettings.enabled will toggle VR mode. For the latter, Player Settings -> Virtual Reality Supported will toggle VR and allow you to select the VR Device you want to target.
You're looking for Google VR's "VR Mode Enabled" option. This make's Google VR change between VR mode and fullscreen mode at runtime. https://developers.google.com/vr/un...gvr_viewer_1aeda718f03c9c3aeee9b793ec758c1e67 You can access this via GvrViewer.Instance.VRModeEnabled = true;