警告提示:Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.
编码格式问题,VS的话直接高级保存方案里面修改,一般我选的是UNICODE(UTF8代签名)MACINTOSH(CR),WINDOW下的可以选WINDOWS的格式,两边都要用的话,推荐选CR。
错误提示:MissingMethodException: Cannot find the requested method.
估计是破解U3D造成的,该破解文件可能是不支持WIN7下的……
解决方法:
1、换正版。
2、换个破解文件。
5.平台编译错误或库引用缺失
错误提示:error CS1061: Type `System.IO.FileInfo' does not contain a definition for `Delete' and no extension method `Delete' of type `System.IO.FileInfo' could be found (are you missing a using directive or an assembly reference?)
Unity will only allow you to have a single instance of a particular AssetBundle loaded at one time in your application. What this means is that you can't retrieve an AssetBundle from a WWW object if the same one has been loaded previously and has not been unloaded. In practical terms it means that when you try to access a previously loaded AssetBundle like this:
(BY :http://docs.unity3d.com/Documentation/Manual/keepingtrackofloadedassetbundles.html)
错误提示:Error while importing package :Couldn't decompress package
解决方式:导入资源出错,大部分都是中文路径惹的祸。将资源换到无中文路径试试。如C/D盘根目录。
14.效率调优报错
错误提示:Non matching Profiler.EndSample (BeginSample and EndSample count must match)
解决方式:http://forum.muchdifferent.com/unitypark/index.php?p=/discussion/1468/non-matching-profiler-endsample/p1
15.IOS下JIT错误问题、编译错误、调试错误
IOS下JIT错误是比较常见的,因为IOS不支持JIT动态编译,所以需要改为合适的AOT静态编译。
错误提示:Attempting to JIT compile method 'System.Linq.OrderedEnumerable`1>:GetEnumerator ()' while running with --aot-only.
解决方式:
关于使用了LINQ字典排序的错误解决方法
http://blog.sina.com.cn/s/blog_5b6cb9500101gnrl.html
错误提示:Installation of apps is prohibited by a policy on the device
解决方式:打开一个开关,允许在安装APP,在“设置-》通用-》访问限制-》安装应用程序” 这。
16.U3D寻路信息错误
错误提示:"XXXX" can only be called on an active agent that has been placed on a NavMesh.
解决方式:角色或怪物生成时要直接给模型赋值到相应的地形位置上。因为开始寻路组建没有获取到正确配置而一直报错。