Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

In-editor Head rotation using alt+mouse stopped working on 1.110.0 #778

Closed
synthercat opened this issue Nov 9, 2017 · 4 comments
Closed

Comments

@synthercat
Copy link

Found using:

  • Google VR SDK version: ___1.110.0
  • Unity version: 2017.2.0f3
  • Phone manufacturer, model, and O/S version: Windows 10

Steps to reproduce the issue:

  1. Make an empty new scene
  2. Switch to android
  3. Set min API to 19
  4. Enable VR support (Cardboard)
  5. Add a reticle and a GVREditorEmulator
  6. Enter play mode (alt + mouse does not work)

Workarounds:
Adding the GvrControllerMain solve this issue. But hey, I am building for cardboard, why do I need the GvrControllerMain?

@rusmaxham
Copy link
Contributor

We are looking into this issue.

@sangarzucchi
Copy link

sangarzucchi commented Nov 13, 2017

Hello there.

I have the same problem and I've found that when I "ToggleVR" using this code bellow, the head rotation works again:

void Update()
{

    if (Input.GetMouseButtonDown(0))
    {
        ToggleVR();
    }
}

void ToggleVR()
{

    if (VRSettings.loadedDeviceName == "cardboard")
    {
        StartCoroutine(LoadDevice("None"));
    }
    else
    {
        StartCoroutine(LoadDevice("cardboard"));
    }
}

IEnumerator LoadDevice(string newDevice)
{
    VRSettings.LoadDeviceByName(newDevice);
    yield return null;
    VRSettings.enabled = true;
}

Credits:
http://talesfromtherift.com/googlevr-cardboard-switch-between-normal-mode-and-vr-mode-at-run-time/

@rusmaxham
Copy link
Contributor

This will be fixed in the next release of the SDK.

@fredsa fredsa changed the title Head rotation stopped working on 1.110.0 In-editor Head rotation using alt+mouse stopped working on 1.110.0 Jan 5, 2018
@fredsa
Copy link
Contributor

fredsa commented Jan 10, 2018

Fixed in 1.120.0

@fredsa fredsa closed this as completed Jan 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants