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

Can't preview GVR 1.60.0 in Unity 2017.1.0f3 #691

Closed
moyicat opened this issue Aug 18, 2017 · 13 comments
Closed

Can't preview GVR 1.60.0 in Unity 2017.1.0f3 #691

moyicat opened this issue Aug 18, 2017 · 13 comments

Comments

@moyicat
Copy link

moyicat commented Aug 18, 2017

Tried to start a new project, and import GoogleVRForUnity.unitypackage, still getting this error message:

VRDevice cardboard not supported in Editor Mode.  Please run on target device.

It works on my Android device if I build and run.

@alejodaraio
Copy link

i thinks is not a issue

@rusmaxham
Copy link
Contributor

This is working as intended. Only the Daydream VR SDK is supported in Editor.

@lee-hall02
Copy link

Apparently Cardboard use to work but no longer.
Why has support been removed?

@rusmaxham
Copy link
Contributor

What version of the GVR SDK for Unity are you using? I believe this issue no longer exists in the latest SDK.

@lee-hall02
Copy link

lee-hall02 commented Nov 16, 2017 via email

@lee-hall02
Copy link

Hi Rus,
I've just been doing some testing using Unity 5.6 and the current 2017.02 and various older versions of the SDK.
The short is the current version of Unity works with
GoogleVRForUnity_1.70.0
GoogleVRForUnity_1.100.0
GoogleVRForUnity_1.100.1

However no longer works with GoogleVRForUnity_1.110.0
You get the Unity console warning in all versions, but Control/Alt + Mouse works in the Game view in the Unity editor where as build 1.110.0 no longer works.

Thanks,
Lee

@lee-hall02
Copy link

Just another update
I have been comparing changes it appears that
Assets/GoogleVR/Scripts/GvrEditorEmulator.cs was refactored
Logic that was in void Update() has been moved into new method public void UpdateEditorEmulation()
However this doesn't seem to get called when running.
I changed mycode to recreate void Update() method which calls the new UpdateEditorEmulation() method and that fixes the problem.
I'm not sure whether or not this is the correct fix.

It might be worth either re-opening this issue or migrating to a new one.
Thanks,
Lee

@lee-hall02
Copy link

It looks like a better fix is you have to have an instance of the GvrControllerMain prefab in addition to the GvrEditorEmulator as the GvrControllerMain prefab has the GvrControllerInput class as a component which then will call UpdateEditorEmulation if running in Unity Editor mode. If this is how it should work the release notes probably want updating.

@rusmaxham
Copy link
Contributor

This now sounds like a dupe of #778

@vivekghanchi
Copy link

vivekghanchi commented Jun 7, 2018

i have used googleVR sdk 1.60.0 for my project on windows 10 with unity 2017.3.1f1
i have selected google cardboard in xr setting and switch my platform to unity only but cardboard view is not coming in my android in my mobile before this project they were coming in cardboard view

@rusmaxham
Copy link
Contributor

I'm not sure I understand the question. What are you seeing on your Android device when you run your app?

@vivekghanchi
Copy link

stereoscopic view is not coming on my mobile device

@rusmaxham
Copy link
Contributor

Could you post a screenshot of what your app is doing?

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

5 participants