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.htmlBecause 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)
相关文章推荐
- 关于Unity3D 的脚本的执行顺序
- 摄像头限制角度
- unity中的sun shafts(也称gay ray)的一种实现方法
- 在Unity3D中使用ScriptableObject进行序列化
- Unity3D研究院之IOS&Android收集Log文件
- Unity3d HDR和Bloom效果(高动态范围图像和泛光)
- Unity3D深入浅出 - 摄像机组件(Camera) - Tonge
- [Unity3D插件系列]-A* Pathfinding Project 学习(一)
- Unity3d AssetPostprocessor简单用法
- Unity实现绘制线断一 ――――利用LineRenderer组件划线的两种方式
- unity3d的base64和MD5
- Unity引用外部DLL库
- Unity3D IDE安装执行过程
- Unity5.0后(unity5.3.5)科大讯飞语音识别Unity-Android SDK 的开发
- unity优化4-从Draw Calls到GC
- unity 优化3-内存优化
- unity 优化2
- 关于Unity5 发布到安卓后帧数低的问题
- Unity3D SerialPort处理
- Unity3D 中判断点与多边形的关系