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

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

当我将 GoogleVR for Unity 资源导入到最新版本的 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?)

这是在一个完全空的项目上发生的,该项目具有适用于 OSX 的最新版本的 GoogleVR 和 Unity。还有其他人看过吗?

已将 Unity 更新到 5.4.0B20(最新的 Beta 版本),它运行良好。在 Unity 论坛上找到了该解决方案,但现在找不到了。

This is due to the fact that in some version of Unity, the default platform is WebGL. You can solve this by switching to the Android platform in File | Build Settings.

您可以通过文件->构建设置->selectAndroid切换平台,然后点击切换平台