- Home /
Google Cardboard SDK script errors
So I downloaded the latest version of the Google Cardboard SDK and the second it was imported into the scene I recieved three errors that won't allow me to play the game.
**Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(79,17): error CS1061: Type System.Diagnostics.Process' does not contain a definition for
Close' and no extension method Close' of type
System.Diagnostics.Process' could be found (are you missing a using directive or an assembly reference?) Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(70,17): error CS0200: Property or indexer System.Diagnostics.Process.StartInfo' cannot be assigned to (it is read only) **Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(66,64): error CS1729: The type
System.Diagnostics.ProcessStartInfo' does not contain a constructor that takes `2' arguments"*
Has anyone else encountered this issue and/or know how to fix it? I don't know coding very well and i'm not sure what to do from here.
Thanks!
@$$anonymous$$orruption, I have the exact same problem and it's driving me nuts! God knows how much I am frustrated right now, because there is no answers, anywhere.
Please post constructive solutions in the answer section. Your post is not an answer, it is a comment and should be in the comment section. I'm going to move it to the comment section for you.
I think I figured out the problem. If you don't import the controller demo and scripts it seems to work fine.
The controller is for the new Google daydream, which is not what I was intending on using at the moment.
Let me know if that works for you, as it seemed to do the trick on my end. I'd like to know if this is the REAL fix lol.
I tried doing the same thing, but my console say: "Assets/GVR/Scripts/UI/GvrReticle.cs(64,5): error CS0103: The name GazeInput$$anonymous$$odule' does not exist in the current context Assets/GVR/Scripts/UI/GvrReticle.cs(68,9): error CS0103: The name
GazeInput$$anonymous$$odule' does not exist in the current context Assets/GVR/Scripts/UI/GvrReticle.cs(69,7): error CS0103: The name `GazeInput$$anonymous$$odule' does not exist in the current context And I don't really know how to cope with that...
Hmm maybe try redownloading the whole package. The only thing I can think of is maybe making sure you have the most up to date version, as well as the most up to date Unity. That's really bizarre that $$anonymous$$e was fixed but yours still isnt. I'm sorry I don't have more suggestions. :-/
Answer by jules43 · Jun 21, 2016 at 09:59 PM
Had this happen again today and figured out what the real problem was (at least on my setup).
The build target was set to Web client I the editor which greatly restricts the set of functionality available.
Suggest trying to set the target to Android (build settings...)
Jules
Answer by jules_fpvr · Jun 21, 2016 at 09:25 PM
I just hit this exact same problem. Prior to having the problem I had installed a new version of my project out of source control and switched from 5.3.5p4 to 5.3.5f1 and back again. Not sure if either of these steps triggered the problem
The issue seems to be with the script assemblies from Diagnostics module that Google VR is using. In the broken version the System.Diagnostics.ProcessStartInfo class is missing a number of members, as if it was using an older version of the class.
On another machine where the project built fine, the class had all the members.
To solve it, I shutdown Unity and deleted the project/Library directory that Unity generates, this forced it to re-import all the assets (which is slow) and rebuild all the assemblies.
I then reloaded the project in Unity and the problem was fixed.
Unfortunately I can't guarantee that this is the thing that fixed it, as I was also making sure 5.3.5p4 was fully installed.
THAN$$anonymous$$ YOU!!!! I had Google VR complete broken in my project - it wouldn't recognise objects. Was frustrating as hell. Deleted the autogenerated Library - restarted - All good! :)
Answer by A_Savvidis · Mar 18, 2017 at 08:39 AM
Just set the tag "MainCamera" to your camera This solves the problem to the GVR Physics raycaster
Answer by robert-ferrese · Jun 24, 2016 at 05:06 AM
This is likely caused by having your build target set to Web or some other unsupported target. Change the build target to Standalone or Android, and that should solve your problem.