您的位置:首页 > 移动开发 > Unity3D

Unity5 development note

2016-07-01 16:02 543 查看

1. After import GoogleVRForUnity.unitypackage, when build the project, some error occurs.

Error log:

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(74,46): error CS0120: An object reference is required to access non-static member `System.Diagnostics.Process.Start()'

Solution:

http://answers.unity3d.com/questions/1203476/google-cardboard-sdk-script-errors.html

Because the default build target in Unity5 is
Web player
, you can change the build target into Android
to solve this problem.

(File - Build Settings - Platform - 'select Android' - switch platform)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: