访问非静态成员GoogleVR + Unity需要对象引用

时间:2016-06-06 18:34:06

标签: c# unity3d unity5 google-vr

只要我将用于Unity资产的GoogleVR导入Unity的最新版本,我就会收到以下编译错误:

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

这是在一个完全空的项目中发生的,该项目包含最新版本的GoogleVR和Unity for OSX。有没有人见过这个?

2 个答案:

答案 0 :(得分:0)

将Unity更新为5.4.0B20(最新的Beta版本),它刚刚奏效。在Unity论坛上找到了解决方案,但现在无法找到。

答案 1 :(得分:0)

http://quirksmode.org/dom/core/#miscellaneous

您可以按文件切换平台 - >构建设置 - >选择Android并单击“切换平台”