Search code examples
c#unity-game-enginegoogle-vr

An object reference is required to access non-static member, GoogleVR + Unity


As soon as I import the GoogleVR for Unity asset into the newest version of Unity, I get the following compile errors:

Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(74,46): error CS0120: An object reference is required to access non-static member `System.Diagnostics.Process.Start()'

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?)

This is happening on a totally empty project with the most recent versions of GoogleVR and Unity for OSX. Has anyone else seen this?


Solution

  • Updated Unity to 5.4.0B20 (the most recent Beta version) and it just worked. Found that solution on the Unity forums, but now can't find where.