HoloLens开发过程中提示: level0 is corrupted,please remove it and launch Unity again!
2017-01-13 15:24
961 查看
由于HoloLens一代未提供图片获取接口,不得已将Leap Motion粘到HoloLens上,通过UDP,使得电脑和HoloLens进行通信,然后将获取的Leap Motion的手势骨骼数据,传给HoloLens进行手势的开发应用。
在开发过程中,将UWP应用的C#文件部署到HoloLens上时,会莫名其妙的出现一个问题,提示你level0文件被损坏,后来网上查阅,大神解答是Unity的脚本文件中存在
#If !UNITY_EDITOR
#endif
引起的,后来我就通过尝试,暂时的解决了这个问题。首先删除文件下Temp\StagingArea\Data中的level0文件和level0.res文件,然后注释除去包含#!if !UNITY_EDITOR #endif 语句,之后通过编译重新生成C#版本的UWP文件,然后在C#工程中,重新对#if !UNITY_EDITOR 中的内容进行取消注释,问题得到解决,如果你有更好的办法,请记得告诉卤煮。
这是问题的罪魁祸首:
#if !UNITY_EDITOR
DatagramSocket socket;
#endif
在开发过程中,将UWP应用的C#文件部署到HoloLens上时,会莫名其妙的出现一个问题,提示你level0文件被损坏,后来网上查阅,大神解答是Unity的脚本文件中存在
#If !UNITY_EDITOR
#endif
引起的,后来我就通过尝试,暂时的解决了这个问题。首先删除文件下Temp\StagingArea\Data中的level0文件和level0.res文件,然后注释除去包含#!if !UNITY_EDITOR #endif 语句,之后通过编译重新生成C#版本的UWP文件,然后在C#工程中,重新对#if !UNITY_EDITOR 中的内容进行取消注释,问题得到解决,如果你有更好的办法,请记得告诉卤煮。
这是问题的罪魁祸首:
#if !UNITY_EDITOR
DatagramSocket socket;
#endif
相关文章推荐
- [Unity问题]The file "MemoryStream" is corrupted! Remove it and launch unity again!
- The file 'none' is corrupted! Remove it and launch unity again!
- yum安装epel库后,安装软件总是提示Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again(无法检索epel仓库)
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- 修改源出现的问题Cannot retrieve metalink for repository: fedora. Please verify its path and try again
- 解决yum安装出现错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- [Yum]Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- Cannot retrieve metalink for repository: fedora. Please verify its path and try again
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- android studio升级时提示 Connection failed. Please check your network connection and try again
- cannot retrieve metalink for repository epel. please verify its path and try again
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- android studio升级时提示 Connection failed. Please check your network connection and try again
- Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- Cannot retrieve metalink for repository: fedora. Please verify its path and try again 解决方法
- 运行yum报错Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- [已解决]Cannot retrieve repository metadata (repomd.xml) for repository:atrpms.Please verify its path and try again
- [Yum]Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again。