unity开发总结

来源:互联网 发布:painter mac 2017 破解 编辑:程序博客网 时间:2024/06/15 17:23



1、真机调试时实时输出日志到PC机

    

  1. adb logcat  


启动logcat,并将设备上运行的android应用的运行时信息全部打印出来。

 

[cpp] view plain copy
  1. adb logcat -s Unity  


如果只想打印Unity的输出信息,使用此命令。

    在android SDK目录platform-tools下有adb。

引用网页:http://blog.csdn.net/armoonwei/article/details/7032455


2、输出日志中显示某些文件无法找到,可这些文件明明在Resources文件夹里,例如

Cannot create FMOD::Sound instance for resource sharedassets0.resource, (File not found. )

可能是因为启用的 Split Application Binary。这个选项在Build Settings -> Player Settings ->Publishing Settings里,禁用即可

引用网页: http://answers.unity3d.com/questions/1098734/sound-not-work-on-android-game-build-in-unity-5.html

0 0