• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Korruption · Jun 17, 2016 at 09:21 PM · script error

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!

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JanekJaneg · Jun 19, 2016 at 08:45 AM 0
Share

@$$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.

avatar image phxvyper JanekJaneg · Jun 19, 2016 at 08:45 AM 0
Share

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.

avatar image Korruption JanekJaneg · Jun 19, 2016 at 09:08 AM 0
Share

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.

avatar image JanekJaneg · Jun 19, 2016 at 01:13 PM 0
Share

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...

avatar image Korruption · Jun 21, 2016 at 09:23 PM 0
Share

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. :-/

4 Replies

· Add your reply
  • Sort: 
avatar image
1

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kylebrosse · Jun 11, 2018 at 08:44 PM 0
Share

Hey, sorry. How do you do this?

avatar image
1

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lemonyama · May 25, 2017 at 03:16 PM 0
Share

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! :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

'parent' is not a member of 'Object'. 1 Answer

Csharp script parsing error 2 Answers

my STFPSC script has errors can anyone help me? 0 Answers

Object reference not set to an instance of an object error. 1 Answer

MeshCombineUtility problem after upgrade to Unity 5? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges