[SOLVED] What is the best way to setup VR for Unity project these days ?

What is most reliable, easiest way to create VR project (for Android) ? I tried Google VR API, but it gives some errors during import and doesn’t work properly (project can’t be launched). It tells mostly: namespace … couldn’t be found, are you missing assembly reference ?

You mean importing the Google VR SDK for Unity package? Can you provide the exact issue you are having from the log and what version of Unity you are using?

Also, was this a new project or are you trying to target an existing project?

I tried to add GoogleVRForUnity.unitypackage to new project, also I tried to launch GVRDemo, on this screenshot you can see version of Unity and error messages:

May be update your google vr sdk

Really ? I downloaded it like 1-2 days ago.

Looks like you have an issue with the Google VR SDK you imported. Try deleting the imported package and re-importing.

I redownloaded and reimported it. Then I open those scene, trying to launch and it gives me a bunch or errors. I’m trying to use this package: Downloads and samples  |  Google VR  |  Google for Developers

Some of scripts cannot be loaded. See picture. But GvrMain from Legacy directory works. What advantage of using newer one ?

You didn’t include the legacy folder while importing
Even with gvr 1.40 using the gvrviewer in the editor it requires scripts from the legacy folder
Gvrviewer is going to be removed in 1.50 no clue how they want to support the editor then because it sure isn’t doing much without

Ok, but this guy somehow doing it without Legacy, that’s why I tried without it:

Is there any other ways but Google’s SDK to setup VR in Unity (not doing everything from zero) ?

He is using an old version of the SDK which did not have the dependencies apparently?
I started off with 1.30 just a few months ago, but to me it just seems like they’re dropping in editor cardboard mode simulation as far as I can tell… even the editor log says it:

Which makes testing a tedious time consuming job since you need to build it with IL2CPP which just takes a long time to build… If I’d had to wait 3 ~ 4 minutes for every single little change because I need to test something on the device, change in editor, build again… that’s taking huge chunks of time.
unacceptable, hopefully they will update this to get editor support.

Thanks, people. I should’ve been using GvrMain from Legacy folder, everything works fine.

1 Like